Code example for HttpPost

Methods: abort

0
 
	public void abort() { 
		try { 
			if (httpClient != null) {
				Log.i(TAG, "Abort.");
				httpPost.abort();
			} 
		} catch (Throwable e) {
			Log.e(TAG, "Failed to abort", e);
		} 
	} 
 
	public String sendPost(String url, Map<String, String> params) {
		return sendPost(url, params, null);
	} 
 
	public String sendPost(String url, Map<String, String> params, String contentType) {
		ret = null;
 
		try { 
			httpClient.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.RFC_2109);