刘建广

博客园 首页 联系 订阅 管理

try{
   URL newURL = new URL("http://localhost:8080/auto/productNeworder.do?method=createProductPrograma");
   HttpURLConnection conn = (HttpURLConnection) newURL.openConnection();
   conn.connect();
   BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
   in.close();
  }catch(MalformedURLException e){
   System.err.print("malformedURLexception"+e);
  }catch(IOException e){
   System.err.print("IOException"+e);
  }

posted on 2012-11-06 16:51  刘建广  阅读(317)  评论(0编辑  收藏  举报