【问题标题】:Connection reset when accessing website through Apache HTTP Connections通过 Apache HTTP 连接访问网站时连接重置
【发布时间】:2012-02-13 14:23:00
【问题描述】:

我正在尝试这个例子http://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientWithResponseHandler.java

但是,它给了我以下信息:

Feb 13, 2012 1:40:55 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset
Feb 13, 2012 1:40:55 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request

我通过代理访问网络,不确定是不是这样。

【问题讨论】:

    标签: java apache-commons


    【解决方案1】:

    这个page 有一个代理示例。

    【讨论】:

    • 嗨 Brettw,是的,我看到了那个页面并尝试了但没有成功,你有使用 Apache Http 连接器代理的经验吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-06
    • 1970-01-01
    相关资源
    最近更新 更多