java數(shù)據(jù)傳給wap站點發(fā)布者:本站 時間:2020-05-06 15:05:25
/**
* 數(shù)據(jù)傳給wap站點
*
* @param message
* @throws IOException
*/
private void settoWap(String message) throws IOException {
URL url;
try {
url = new URL(
"
+ 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();
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
-
選擇我們,優(yōu)質(zhì)服務(wù),不容錯過
1. 優(yōu)秀的網(wǎng)絡(luò)資源,強大的網(wǎng)站優(yōu)化技術(shù),穩(wěn)定的網(wǎng)站和速度保證
2. 15年上海網(wǎng)站建設(shè)經(jīng)驗,優(yōu)秀的技術(shù)和設(shè)計水平,更放心
3. 全程省心服務(wù),不必?fù)?dān)心自己不懂網(wǎng)絡(luò),更省心。
------------------------------------------------------------
24小時聯(lián)系電話:021-58370032