HttpClient 的基本操作

来源:互联网 发布:淘宝怎么关注微淘达人 编辑:程序博客网 时间:2024/05/17 02:49
final HttpClient httpClient = new HttpClient();
GetMethod getMethod = new GetMethod("http://www.baidu.com");int statue = httpClient.executeMethod(getMethod);System.out.println("response="+getMethod.getResponseBodyAsString());

0 0
原创粉丝点击