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);