Code example for HttpGet

Methods: setHeader

0
	} 
 
	public InputStreamReader callGet(String url)
			throws ServiceNotAvailableException, ClientProtocolException, 
			IOException { 
		mSERVERGET = new HttpGet(url);
 
		mSERVERGET.setHeader("Cookie", getSession());
		HttpResponse response = mClient.execute(mSERVERGET);
		InputStream is = response.getEntity().getContent();
		InputStreamReader isr = new InputStreamReader(is, "UTF-8");
		return isr;
 
	} 
 
	/* 
	 * private void systemConnect() throws ServiceNotAvailableException { // 
	 * Cloud server hand shake String uri = mENDPOIN + "system/connect"; 
	 * mSERVERPOST = new HttpPost(uri); try { HttpResponse response = 
	 * mClient.execute(mSERVERPOST); InputStream result = 
	 * response.getEntity().getContent(); BufferedReader br = new