Code example for HttpRequestBase

Methods: addHeader

	 * @param httpRequest The {@link HttpRequest} to add headers. 
	private static void makeJSONHttpRequestContentTypeHeader(HttpRequestBase httpRequest) {
		// Make sure the server knows what kind of a response we will accept 
		httpRequest.addHeader("Accept", "application/json");
		// Also be sure to tell the server what kind of content we are sending 
		httpRequest.addHeader("Content-Type", "application/json");
//		httpRequest.addHeader(CoreProtocolPNames.USER_AGENT, "TimelineAndroid"); 
	 * Sends a JSON-string to the Google App Engine Server. This runs async in a separate thread. 
	 * @param jsonString Content of HTTP request, as JSON. 
	 * @param targetHost The host of the server 
	 * @param httpPut The HTTP PUT request.