参考资料:
https://stackoverflow.com/questions/11347635/apache-httpcomponents-org-apache-http-client-clientprotocolexception
解决方法:
DefaultHttpClient httpClient = new DefaultHttpClient();
改成:
ClientConnectionManager connManager = new PoolingClientConnectionManager(); DefaultHttpClient httpClient = new DefaultHttpClient(connManager);