Code example for HttpDelete

Methods: setHeaders

0
		get.setHeaders(headers);
		return execute(get, coding);
	} 
 
	public static String sendDeleteRequest(String url, String coding, Header[] headers) throws ApplicationException {
		HttpDelete delete = new HttpDelete(url);
		delete.setHeaders(headers);
		return execute(delete, coding);
	} 
 
	public static String sendRequest(String url, String coding, String json, Header[] headers) throws ApplicationException {
		HttpPost post = new HttpPost(url);
		StringEntity se;
		try { 
			se = new StringEntity(json);
			se.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, "application/json"));
			post.setHeaders(headers);
			post.setEntity(se);
			post.setHeader("Content-type", "application/json");
 
Connect your IDE to all the code out there  Get Codota for Java