StringEntity和UrlEncodedFormEntity的区别一、UrlEncodedFormEntity//设置请求方式与参数URIuri=newURI(uriStr);HttpPosthttpPost=newHttpPost(uri);httpPost.getParams().setParameter("http.socket.timeout",newInteger(500000));httpPost.setHeader("Content-type","text/plain;charset=UTF-8");httpPost.setHeader("User-Agent","Mozilla/4.0(compatible;MSIE6.0;Windows2000)");httpPost.setHeader("ICo...
继续阅读 >