Code example for HttpGet

Methods: setHeader

0
		StringBuilder cookie = new StringBuilder("webvpn=" + webVpn + "; ");
		cookie.append("webvpnc=bu:" + bu + "; "); 
		cookie.append("webvpnaac=1");
				 
		// Create the HttpGet request 
		HttpGet httpGet = new HttpGet(mHttpClient.getServerAddress() + bu + fu);
		httpGet.setHeader("Accept", "*/*");
		httpGet.setHeader("Accept-Encoding", "identity");
		httpGet.setHeader("Cookie", cookie.toString());
		httpGet.setHeader("X-Transcend-Version", "1");
			 
		// Send the request async 
		mHttpClient.sendHttpGetRequest(httpGet);
	 
	} 
	 
	/** 
	 * Compare the Sha1 of the existing configuration file and the Sha1 of the downloading one   
	 */ 
	boolean compareSha1(String downloadedSha1) {