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