code: public static InputStream doPOST(URL url, String data, int timeout) throws IOException
  	{
  		URLConnection conn = openURLConnection(url, timeout);
  		conn.setDoOutput(true);
  		OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
  		wr.write(data);
  		wr.flush();
  		return conn.getInputStream();
  	}
docs: Do a POST to a URL and return the response stream for further processing elsewhere.
  <p>
  The caller is responsible to close the returned InputStream not to cause
  resource leaks.
  @param url the input URL to be read
  @param data the post data
  @param timeout
  @return an {@link InputStream} of response
  @throws IOException due to an error opening the URL