Code example for HttpUriRequest

Methods: getURI

0
		private byte[] _contents = null;
 
		public AsyncHttpClient(HttpUriRequest http_request, OnResultListener listener) {
			_http_request = http_request;
			System.out.println("URL: ");
			System.out.println(_http_request.getURI());
			_listener = listener;
		} 
 
		/** 
		 * Fetch the raw response in the background. 
		 */ 
		@Override 
		protected Void doInBackground(Void... params) {
			//MLog.d(TAG, "Fetch " + _http_request.getURI().toString()); 
			try { 
				System.out.println("Here the url is :"+_http_client);
				final HttpResponse http_response = _http_client.execute(_http_request);
				System.out.println("Got to here 123");
				_status_code = http_response.getStatusLine().getStatusCode();