Code example for HttpPost

Methods: abort

0
 
	public void abort() { 
		try { 
			if (httpClient != null) {
				System.out.println("Abort.");
				httpPost.abort();
			} 
		} catch (Exception e) {
			e.printStackTrace();
		} 
	} 
 
	public void clearCookies() { 
		httpClient.getCookieStore().clear();
	} 
 
	public InputStream getHttpStream(String urlString) throws IOException {
		InputStream in = null;
		int response = -1;
 
		URL url = new URL(urlString);