Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 httpclient 和 httpget 从 URI 获取响应。当我尝试执行 httpclient.execute 方法时,它给了我 http 主机连接异常。但是,当我将与输入流相同的 URI 传递给 XML 解析代码时,代码可以正常工作。有人对这个问题有任何想法吗..提前感谢帮助
外巴
你在代理后面吗?HttpClient 库可能使用与您正在使用的 XML 库不同的方式来配置代理。以下链接可能有用,具体取决于您使用的 HttpClient 版本。