Code example for DefaultHttpClient

Methods: getCookieStore

0
        httpClient = new DefaultHttpClient(myParams);       
        localContext = new BasicHttpContext();    
    } 
 
    public void clearCookies() { 
        httpClient.getCookieStore().clear();
    } 
 
    public void abort() { 
        try { 
            if (httpClient != null) {
                System.out.println("Abort.");
                httpPost.abort();
            } 
        } catch (Exception e) {
            System.out.println("Your App Name Here" + e);
        } 
    } 
 
    public String sendJSONPost(URI uri, String path, Map<String, String> params) {
    	return sendPost(uri, path, params, "application/json");