code: void setupConnection(String requestMethod, String queryString,
  			HttpURLConnection connection) throws IOException {
  		connection.setRequestMethod(requestMethod);
  		connection.setDoInput(true);
  		connection.setDoOutput(true);
  		connection.setUseCaches(false);
  		connection.setRequestProperty("Content-Type",
  				"application/x-www-form-urlencoded");
  		connection.setRequestProperty(ApiConnection.PARAM_COOKIE,
  				getCookieString());
  	}
docs: Configures a given {@link HttpURLConnection} object to send requests.
  Takes the request method (either "POST" or "GET") and query string.
  
  @param requestMethod
  either "POST" or "GET"
  @param queryString
  the query string to submit
  @param connection
  the connection to configure
  @throws IOException
  if the given protocol is not valid