hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: How to handle ajax calls using HttpClient
Date Wed, 29 Oct 2014 09:00:36 GMT
On Tue, 2014-10-28 at 23:37 -0700, gdrsantosh wrote:
> Hi, 
> I'm using following code to get pagecontent. But unfortunately i'm not able
> to get data which is within the table. 
> 
> HttpGet httget = new
> HttpGet("http://pstweb.cloudapp.net/raselect/?tid=188J"); 
> HttpClient httpclient = new DefaultHttpClient(); 
> HttpResponse response = httpclient.execute(httget); 
> HttpEntity entity = response.getEntity(); 
> String thirdPartyPageContent=EntityUtils.toString(entity) ; 
> 
> but if you enter the url directly in browser I get all the data in table. My
> understanding is to make ajax call it takes some time. But our httpclient is
> not waiting for the same. 
> please help me in getting the table page content. 
> Thanks
> 

HttpClient is not a browser, it is a HTTP transport library.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message