POST请求:
new UrlEncodedFormEntity(params, "UTF-8")是不是只能用于post请求
URLEncodedUtils.format(params, "UTF-8")是不是只能用于get请求
还有能不能帮我写一个get请求的例子。
里面有涉及有设置参数的。
如:httpget get = new httpget();
get.setXXX();
httpresponse response = httpclient.execute(get);
http://blog.csdn.net/wangpeng047/article/details/19624529
上面不是有例子啊 。不同 版本的jar 写法可能写法不一样的。
不要用httpclient,用Volley或者OKHttp之类的框架吧