I haven't tried the link you supplied, but I'm guessing that us.vwr.com
requires a session to be in place before it allows a search to be
executed.  You should first make a request to their home page or store page
or wherever the session gets initiated and put the session cookie on the
request to the link you've provided.

On Tue, Mar 10, 2015 at 5:40 AM, gdrsantosh <gdrsant...@gmail.com> wrote:

> 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-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
>
>


-- 

*Daniel Quaroni*
Principal Software Architect
P: 781.810.2743
q...@invoke.com
www.invoke.com
See a Demo here <http://www.invoke.com/platform/demo>

Reply via email to