code: public void sendDataRequest(HttpURLConnection httpURLConnection, Hashtable param) throws Exception {
  		try {
  			// write out parameters, assume parameters are put in the hashtable
  			PrintWriter out = new PrintWriter(new OutputStreamWriter(httpURLConnection.getOutputStream()));
  			// open up the output stream of the connection
  			// DataOutputStream output = new
  			// DataOutputStream(conn.getOutputStream() );
  
  			String paramString = "";
  			for (Enumeration e = param.keys(); e.hasMoreElements();) {
  				String key = (String) e.nextElement();
  				String value = (String) param.get(key);
  				// no harm for an extra & at the end of the parameter list
  				paramString += key + "=" + URLEncoder.encode(value, "UTF-8") + "&";
  			}
  			paramString = paramString.substring(0, paramString.length() - 1);
  
  			// output.writeBytes( paramString );
  			// output.close();
  
  			out.println(paramString);
  			out.close();
  		} catch (Exception ex) {
  			Debug.logError(ex, module);
  			throw new Exception(ex);
  		}
  
  	}
docs: 将字符串发往Http
  
  @param httpURLConnection
  @param sendText
  @throws java.lang.Exception