> -----Ursprüngliche Nachricht-----
> Von: Wang, Michael (Matrix) [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 28. Dezember 2005 20:04
> An: '[email protected]'
> Betreff: enable active script.
> 
> How can I enable active scripting in httpclient to simulate 
> the action in IE.
> 
>  

HttpUnit is your friend...

> 
> IE6Internet Explorer version 6
> 
>  
> 
> 1. On the Tools menu, select "Internet Options..."
> 
> 2. Click the "Privacy" tab
> 
> 3. Ensure that the privacy level is set no higher than "Medium High"
> 
> 4. Click the "OK" button
> 
>  
> 
>  
> 
> I have tried to change the user-agent, but it does not work. 
> 
>         HttpClient client = new HttpClient();
> 
>         HttpMethod method = new GetMethod(url);
> 
>   
> method.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPAT
> IBILITY);
> 
>         method.addRequestHeader (new Header("User-Agent", 
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"));
> 
>  
> 
>   
> 
> Thanks for any help.
> 
>  
> 
> --Michael
> 
>  
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to