Code example for HttpGet

Methods: abort

0
    	String uriToCall = uri[0];
    	 
    	// if we still have any connection lingering, try to get rid of it 
    	if( (this.httpClient != null) && (httpGet != null) )
    	{ 
    		httpGet.abort();
    		httpGet = null;
    		this.httpClient = null;
    	} 
    	 
    	if( this.httpURLConnection != null )
    	{ 
    		this.httpURLConnection.disconnect();
    		this.httpURLConnection = null;
    	} 
    	 
    	String httpResponse = null;
 
    	if( useHttpURLConnection )
    	{ 
    		httpResponse = callUsingHttpURLConnection(uriToCall);