java数据传给wap站点

/**
* 数据传给wap站点
*
* @param message
* @throws IOException
*/
private void settoWap(String message) throws IOException {
URL url;
try {
url = new URL(
"http://www.devdao.com/colgate/inc/msgvote.php?imgid="
+ message+"&mobile="+phone);
HttpURLConnection connection = (HttpURLConnection) url
.openConnection();
connection.setRequestMethod("POST");
connection.setDoOutput(true);
PrintWriter out = new PrintWriter(connection.getOutputStream());
out.close();
BufferedReader in = new BufferedReader(new InputStreamReader(
connection.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
LogTool.WriteLog(line);
System.out.println(line);
}
in.close();

成都创新互联公司是一家专注于成都做网站、成都网站建设与策划设计,洛龙网站建设哪家好?成都创新互联公司做网站,专注于网站建设十年,网设计领域的专业建站公司;建站业务涵盖:洛龙等地区。洛龙做网站价格咨询:18980820575

} catch (MalformedURLException e) {
e.printStackTrace();
}

}

-


当前题目:java数据传给wap站点
URL地址:http://myzitong.com/article/sedopp.html