Code example for AndroidHttpClient

Methods: execute

0
		String careerDataRawHTML;
		HttpGet httpget = new HttpGet(
				"http://portalestudente.unict.it/stud/ctrl?action=infoCarriera"); 
		HttpResponse response;
		try { 
			response = httpClient.execute(httpget, httpContext);
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			Log.e(this.getClass().getSimpleName(), Log.getStackTraceString(e));
			throw new FailedCareerDataFetchException(e);
 
		} 
		HttpEntity entity = response.getEntity();
 
		try { 
			careerDataRawHTML = EntityUtils.toString(entity);
		} catch (ParseException e) {
			// TODO Auto-generated catch block 
			Log.e(this.getClass().getSimpleName(), Log.getStackTraceString(e));
			throw new FailedCareerDataFetchException(e);