httpclient.exect(xxx)的返回结果为什么和浏览器的返回结果不一样啊??
例如:快递查询的结果
http://www.kuaidi100.com/query?type=zhongtong&postid=46xxxxxxxx
使用httpclient.exect(xxx)的返回结果为:
HttpResponseProxy{HTTP/1.1 200 OK [Server: nginx, Date: Wed, 24 Jan 2018 08:04:34 GMT, Content-Type: text/html;charset=UTF-8, Transfer-Encoding: chunked, Connection: keep-alive, Vary: Accept-Encoding, P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT", Cache-Control: no-cache] org.apache.http.client.entity.DecompressingEntity@5221dfe5}
如:
但浏览器的返回结果为:
为什么不一样呢,怎样才能一样呢?老师??
我把他转为了json格式,但还是和浏览器的不一样