commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas De Loof <nicolas.del...@capgemini.com>
Subject Re: [commons-httpclient3.0] Java Script enabling
Date Thu, 06 Apr 2006 11:28:47 GMT

Some site use a little Javascript on welcome page to detect browser support.
As commons-httpclient only handle the HTTP layer (not HTML neither 
Javascript) this test will fail.

You may take a look at tools like HttpUnit that handle HTML pages and 
execute JS in a 100% Java internal pseudo-browser.

Alex a écrit :
> I establish connection to a site and I get 
>
> "In order to use this application, you must have Java Scripting enabled"
>
> "In order to use this application, you must have Cookies enabled."
>
>  
>
> I set client 
>
>  client.getParams().setParameter("http.useragent","MSIE 6.0");   
>
>  client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);
>
>  
>
> does any one know how to set it, so that site thinks java script and cookies
> are enabled
>
>  
>
> Thanks
>
>
>   

This message contains information that may be privileged or confidential and is the property
of the Capgemini Group. It is intended only for the person to whom it is addressed. If you
are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,
 distribute, or use this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message