posts - 325,  comments - 25,  trackbacks - 0
URL url = new URL("http://125.60.29.90/sp/jsp/culvoucher/CULRetrieveGrteFg.jsp?ssn='"+nmb.getUSER_REG_NUMBER()+"'"); 
  HttpURLConnection http = (HttpURLConnection) url.openConnection(); 
  http.connect(); 
  InputStream urlstream = http.getInputStream(); 
  BufferedReader l_reader = new BufferedReader(new InputStreamReader(urlstream)); 
  String currentLine=null;
  String totalstring=null;
  while ((currentLine = l_reader.readLine()) != null){
   totalstring += currentLine;
  }
  System.out.println("-------------"+totalstring);
  String target=null;
  if(totalstring.length()>1){
   target=totalstring.substring(4);
  }else{
   target=totalstring;
  }
  System.out.println(target);
posted on 2009-01-22 22:23 长春语林科技 阅读(178) 评论(0)  编辑  收藏 所属分类: util

只有注册用户登录后才能发表评论。


网站导航:
 
<2009年1月>
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

 

长春语林科技欢迎您!

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

相册

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜