hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdrsantosh <gdrsant...@gmail.com>
Subject How to handle session using Httpclient or FirefoxDriver using Java
Date Tue, 10 Mar 2015 09:40:45 GMT
Hi,I have tried the following code to get the page content but,it results in
Session Expired.I want to know the solution
for this problem.

  HttpGet httpGet = new
HttpGet("http://us.vwr.com/store/search/searchResultList.jsp?_DARGS=/store/search/includes/categorySearchResultGrid.jsp.1_AF&_dynSessConf=8835674528907442989&sfh_showProducts=submit&catName=Batteries&_D%3Asfh_showProducts=+&catId=542671%2C");
   HttpClient httpclient = new DefaultHttpClient();
   HttpResponse response = httpclient.execute(httpGet);
   HttpEntity entity =response.getEntity(); 
   String thirdPartyPageContent=EntityUtils.toString(entity);
   System.out.println(thirdPartyPageContent);



--
View this message in context: http://httpcomponents.10934.n7.nabble.com/How-to-handle-session-using-Httpclient-or-FirefoxDriver-using-Java-tp25842.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

---------------------------------------------------------------------
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