--- "Wang, Michael (Matrix)"
<[EMAIL PROTECTED]> wrote:

> How can I enable active scripting in httpclient to
> simulate the action in
> IE.
> 
>  
> 
> 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_COMPATIBILITY);
> 
>         method.addRequestHeader (new
> Header("User-Agent", "Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.0)"));
> 
>  
> 
>   
> 
> Thanks for any help.
> 
>  
> 
> --Michael
> 
>  
> 
> 
I assume you mean running scripts in the content
returned from a URL like java script or VBScript? 
HttpClient doesn't support this type of stuff.  It
really wouldn't make sense...especially VBScript. 
Then you have to think about what we're talking about:
HttpClient is not by any means a web browser and it
does not claim to be (not any where I've seen).  There
is no document model in HttpClient it is simply used
to pull requests over Http...http client...not display
and format html.  You'll need to search google.  There
are some open source java browser clients out there
being worked on....at least some time ago when I
looked...I don't know how good they are now, but when
I looked I didn't see any I would use in a commercial
grade product.  Then there are some commercial
offerings as well I saw, and some of them looked
pretty fancy ( I can't remember the names as I didn't
even build anything with them ), but I do remember
that one would use the Rhino java script engine for
java script in html.

Wade

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

Reply via email to