Code example for HttpRequestBase

Methods: setURI

0
		return data.getString(url, null);
	} 
	 
	public void addGetArg(String key, String value) throws URISyntaxException{
		url += key+"="+value+"&";
		request.setURI(new URI(url));
	} 
	 
	@Override 
	protected void onPreExecute() { 
		prepRequest(); 
	} 
 
	protected HttpResponse doInBackground(Void...arg0) {
		HttpResponse response;
		try { 
			response = client.execute(request);
		} catch (ClientProtocolException e) {
			e.printStackTrace();
			response = null;
			Log.d(TAG, "hit ClientProtocolException in ApiRequest");