摘要: String url = "http://www.baidu.com"; //将要访问的url字符串放入HttpPost中 HttpPost httpPost = new HttpPost(url); //请求头 放置一些修改http请求头和cookie httpPost.setHeader("Accept", "application/json"); ...... //如果是Htt... 阅读全文
posted @ 2016-04-07 10:33 新手娃娃菜 阅读(657) 评论(0) 推荐(0) 编辑