![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java抓取
java抓取
dancheng_work
在时间允许的情况下,源码是最好的开发文档。
展开
-
HttpMethodDirector源码解析
变量//方法连接器private ConnectMethod connectMethod;//HTTP状态private HttpState state;//主机配置private HostConfiguration hostConfiguration;//HTTP连接管理器private HttpConnectionManager connectionManager;//H...原创 2019-03-11 16:35:30 · 1061 阅读 · 0 评论 -
HttpClient源码解析
变量//http连接管理器private HttpConnectionManager httpConnectionManager;//http状态private HttpState state;//http客户端参数private HttpClientParams params;//主机配置private HostConfiguration hostConfiguration;...原创 2019-03-11 16:31:12 · 1705 阅读 · 0 评论 -
org.apache.http.client.CircularRedirectException异常处理方式
我遇到这个问题的场景是在get请求上出现的这个错误当时我的设置是:get = new QFGetMethod(geturl);get.setFollowRedirects(false);get.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;...转载 2019-03-04 18:22:35 · 968 阅读 · 0 评论