Code example for HttpRequestBase

Methods: getURI

0
	 * @param request 
	 * @return response 
	 */ 
	public static String sendRequest(HttpRequestBase request) {
		 
		Log.i(TAG, "ConnectionF: " + request.getURI());
		 
		try { 
			HttpClient client = new DefaultHttpClient();
			HttpResponse resp;
			resp = client.execute(request);
			return responseToString(resp);
			  
		} catch (ClientProtocolException e) {
			Log.e(TAG, "Web Request Failed", e);
		} catch (IOException e) {
			Log.e(TAG, "Web Request Failed", e);
		} 
		return ""; 
	} 
Connect your IDE to all the code out there  Get Codota for Java