
http
zhaojian0910
这个作者很懒,什么都没留下…
展开
-
java 发送http消息 带参数 HttpURLConnection
代码 public static void main(String[] args) throws IOException { String result = ""; BufferedReader in = null; try { String urlNameString = URLNAME + "?param1=...原创 2015-08-24 11:52:36 · 191 阅读 · 0 评论 -
HttpClient + PostMethod 发送post消息
发送带参数的http消息 public static String post(String requestBody, String url) { String responseMsg = ""; HttpClient httpClient = new HttpClient(); PostMethod method = new PostMethod(url); ...原创 2015-08-25 09:47:23 · 878 阅读 · 0 评论