摘要: 如果使用的是httpClient: try { HttpResponse response = HttpUtil.httpClient.execute(new HttpGet(url)); Header header = response.getFirstHeader("Set-Cookie"); if (header != null) { String cookies = header.getValue(... 阅读全文
posted @ 2014-04-02 12:03 无忧之路 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 使用的环境:apache-mime4j-0.6.jar,httpcore-4.3.2.jar,httpmime-4.3.3.jartry { HttpPost httpPost = new HttpPost(GlobalData.urls.get("awsSub")); MultipartEntityBuilder multipartEntityBuilder = MultipartEntityBuilder.create(); multipartEntityBuilder.add... 阅读全文
posted @ 2014-04-02 11:57 无忧之路 阅读(1475) 评论(0) 推荐(0) 编辑
无忧之路