Code example for HttpDelete

Methods: addHeader

0
	} 
 
	protected HttpResponse delete(String url)
	{ 
		HttpResponse response = null;
		HttpDelete request = new HttpDelete(url);
		request.addHeader("Content-Type", "application/json");
		response = request(request);
		return response;
	} 
 
	protected HttpResponse get(String url)
	{ 
		HttpResponse response = null;
		HttpGet request = new HttpGet(url);
		request.addHeader("Content-Type", "application/json");
		response = request(request);
		return response;
	} 
 
Connect your IDE to all the code out there  Get Codota for Java