![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
请求
DingYe_Names
这个作者很懒,什么都没留下…
展开
-
请求返回,json
// 构造HttpClient的实例 HttpClient httpClient = new HttpClient(); // 创建GET方法的实例 GetMethod getMethod = new GetMethod(newURL); // 使用系统提供的默认的恢复策略 getMethod.getPara原创 2015-01-09 10:45:27 · 482 阅读 · 0 评论 -
http请求
// 请求返回结果 String result = ""; try { // 请求地址 URL url = new URL(postUrl); URLConnection con = url.openConnection(); con.s原创 2015-01-09 10:43:09 · 396 阅读 · 0 评论