用httpclient登陆51job出错了。

07-03-22 zzkisswll
用httpclient登陆几个网站找数据,但有一个发生了错误,如下:

不知道是不是对方服务器做了啥设置,请高人指点。

java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(Unknown Source)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at org.apache.commons.httpclient.HttpParser.readRawLine

at org.apache.commons.httpclient.HttpParser.readLine

at org.apache.commons.httpclient.HttpConnection.readLine

at org.apache.commons.httpclient.HttpMethodBase.readStatusLineat org.apache.commons.httpclient.HttpMethodBase.readResponse

at org.apache.commons.httpclient.HttpMethodBase.execute

at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry

at org.apache.commons.httpclient.HttpMethodDirector.executeMethod

at org.apache.commons.httpclient.HttpClient.executeMethod

at org.apache.commons.httpclient.HttpClient.executeMethod

猜你喜欢