Code example for HttpUriRequest

Methods: addHeader, getParams

0
	 * Setup HTTPConncetionParams 
	 *  
	 * @param method 
	 */ 
	private void SetupHTTPConnectionParams(HttpUriRequest method) {
		HttpConnectionParams.setConnectionTimeout(method.getParams(),
				CONNECTION_TIMEOUT_MS);
		HttpConnectionParams 
				.setSoTimeout(method.getParams(), SOCKET_TIMEOUT_MS);
		mClient.setHttpRequestRetryHandler(requestRetryHandler);
		method.addHeader("Accept-Encoding", "gzip, deflate");
		method.addHeader("Accept-Charset", "UTF-8,*;q=0.5");
	} 
 
	/** 
	 * Create request method, such as POST, GET, DELETE 
	 *  
	 * @param httpMethod 
	 *            "GET","POST","DELETE" 
	 * @param uri 
	 *            请求的URI