[java]代码库
String request_url = reg_api+"?"+"mobileNum="+telnumber+"®SourceID="+agentid+"&clientIP="+ip;
			  URL url = new URL(request_url);
		      HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
		      httpURLConnection.setDoOutput(true);
		      httpURLConnection.setDoInput(true);
		      httpURLConnection.setRequestMethod("GET");//提交类型
		      httpURLConnection.connect();
		      //获取返回值
		      InputStreamReader  bis = new InputStreamReader(httpURLConnection.getInputStream(),"gb2312");
		      
		      int c = 0;
		      while((c = bis.read()) != -1)
		      {
		       result=result+(char) c;   
		      }