// urlParam=
http://192.168.1.92/easycall/cmd?funcName=check;
private String getBillingForEasytouch(String urlParam){
String result="";
try{
URL url = new URL(urlParam);
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream(), "utf-8");
Integer easytouchServiceId = easyTouchConfig
.getInteger(Constants.CEM_EASYTOUCH_SERVICE_ID);
String pwd = easyTouchConfig
.getString(Constants.BILLING_FOR_EASYTOUCH_PWD);
out.write("c=siteId:"+siteId+",pwd:"+pwd+",serviceId:"+easytouchServiceId+"&s=0");
out.flush();
out.close();
BufferedReader in = new BufferedReader(new InputStreamReader(
connection.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
result += line;
}
in.close();
}
catch(Exception e){
}
return result;
}
------君临天下,舍我其谁
------