标签:
URL url = new URL(sb.toString());//请求的地址 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST");//请求方式 BufferedReader in = new BufferedReader(new InputStreamReader( url.openStream()));
//返回结果
String inputline = in.readLine();
System.out.println(inputline);
标签:
原文地址:http://www.cnblogs.com/clovem/p/5545186.html