Code example for BasicHttpParams

Methods: setParameter

0
		this.server = "http://voteserver.herokuapp.com";
		this.phoneId = phoneId;
	} 
 
	private HttpClient buildHttpClient() {
		HttpParams params = new BasicHttpParams();
		params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);
		HttpClient client = new DefaultHttpClient(params);
		return client;
	} 
 
	private String performGET(String requestString) throws Exception {
		Log.d("Server", "Perform GET " + requestString);
 
		String result = null;
		try { 
			HttpClient client = buildHttpClient();
			HttpGet get = new HttpGet(requestString);
			HttpResponse response = client.execute(get);
			result = EntityUtils.toString(response.getEntity(), HTTP.UTF_8);
		} catch (IOException e) {