`

HttpClient使用Post和Get提交参数

 
阅读更多

http://honda418.iteye.com/blog/337052

分享到:
评论
1 楼 woxiangbo 2012-12-26  
HttpClient httpClient = new HttpClient();
PostMethod postMethod = new PostMethod(url);

postMethod.setParameter("nickname", nickname);
postMethod.setParameter("sign", sign);
postMethod.setParameter("company", company);
postMethod.setParameter("seniorSchool", seniorSchool);
postMethod.setParameter("university", university);
httpClient.executeMethod(postMethod);
String result=postMethod.getResponseBodyAsString()

相关推荐

Global site tag (gtag.js) - Google Analytics