code: public HttpURLConnection connectService(HttpServerParam httpServerParam, String userPassword) throws Exception {
  		HttpURLConnection httpURLConnection = null;
  		URL url = null;
  		try {
  
  			url = new URL("http", httpServerParam.getHost(), httpServerParam.getPort(), httpServerParam.getServletPath());
  
  			Debug.logVerbose("[JdonFramework]Service url=" + url, module);
  
  			httpURLConnection = (HttpURLConnection) url.openConnection();
  			httpURLConnection.setRequestMethod("POST");
  			httpURLConnection.setDoOutput(true);
  			httpURLConnection.setDoInput(true);
  			httpURLConnection.setUseCaches(false);
  			httpURLConnection.setRequestProperty("Content-Type", "application/x-java-serialized-object");
  
  			if ((userPassword != null) && (!userPassword.equals("null"))) {
  				String encoded = "Basic " + Base64.encodeBytes(userPassword.getBytes("UTF-8"));
  				httpURLConnection.setRequestProperty("Authorization", encoded);
  			}
  		} catch (Exception ex) {
  			Debug.logError("[JdonFramework] connectServer " + url + " error: " + ex, module);
  			throw new Exception(ex);
  		}
  		return httpURLConnection;
  	}
docs: 连接Http Server， 准备传送serialized-object
  
  @param httpServerParam
  @return
  @throws java.lang.Exception