httpclient在运行中有时会报
----------------------------------------
2007-6-26 23:05:12 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
信息: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
2007-6-26 23:05:12 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
信息: Retrying request
-----------------------------------------------
的错误,请问如何解决哦
----------------------------------------
2007-6-26 23:05:12 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
信息: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
2007-6-26 23:05:12 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
信息: Retrying request
-----------------------------------------------
的错误,请问如何解决哦
GetMethod method=new GetMethod("http://www.google.com");
client.excute...(method);
sysout(method.getResponseBody...);
一般是不会出问题的
如果你不用代理的话,就用HTMLParser