查询短信的短信剩余条数 您所在的位置:网站首页 沃尔沃xc60全系标配自动避让吗 查询短信的短信剩余条数

查询短信的短信剩余条数

#查询短信的短信剩余条数| 来源: 网络整理| 查看: 265

Mick.987

相信开源,才是未来的春天!

  查询短信的短信剩余条数 /** * 查询短信的短信剩余条数 * @return */ public static String getSmsCount() { String ret_str = ""; BufferedReader rd=null; try { //http://221.179.180.158:9000/QxtSms/QxtFirewall?OperID=test&OperPass=test&SendTime=&ValidTime=&AppendID=1234&DesMobile=13900000000&Content=%D6%D0%CE%C4%B6%CC%D0%C5abc&ContentType=15 String myurl="http://221.179.180.158:9001/QxtSms/surplus?OperID="+getPropertiesByKey("sms_userId") +"&OperPass="+getPropertiesByKey("sms_password"); /* String myurl=getPropertiesByKey("sms_get")+"?OperID="+ getPropertiesByKey("sms_userId")+"&OperPass="+getPropertiesByKey("sms_password") +"&SendTime=&ValidTime=&AppendID=&DesMobile="+mobile_phone+"&Content="+ URLEncoder.encode(msg, "GBK")+"&ContentType=15"; */ System.out.println(myurl); URL url = new URL(myurl); URLConnection conn = url.openConnection(); conn.setDoOutput(true); // Get the response rd = new BufferedReader(new InputStreamReader(conn. getInputStream())); String line; while ( (line = rd.readLine()) != null) { ret_str += line; } System.out.println("条数:"+ret_str); rd.close(); } catch (Exception e) { System.out.println(e.toString()); } finally{ try { if(rd!=null) rd.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } return ret_str; }

 

宝贝网址:

posted on 2014-06-06 15:18  张朋飞  阅读(758)  评论(0)  编辑  收藏  举报

刷新评论刷新页面返回顶部 导航 博客园 首页 新随笔 联系 订阅 管理 公告


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有