Code example for AndroidHttpClient

Methods: execute

0
		target = _target;
	} 
	 
	public HttpResponse execute(HttpRequest req, HttpContext ctx) throws ClientProtocolException, IOException {
		http = AndroidHttpClient.newInstance("wportfel/1.0");
		HttpResponse resp = http.execute(target, req, ctx);
		return resp;
	} 
	 
	public HttpResponse execute(HttpRequest req) throws ClientProtocolException, IOException {
		http = AndroidHttpClient.newInstance("wportfel/1.0");
		return http.execute(target, req);
	} 
	 
	public void close() { 
		if(http != null) {
			http.close();
			http = null;
		} 
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE