Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

System.setProperty("http.agent"..) appends Java/1.6

807589Oct 24 2008 — edited Oct 24 2008
In my JAVA program I set the user agent with
System.setProperty("http.agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");

But I see from packet sniffing that JAVA appends " Java/1.6" to the user agent that I'm trying to set.

This causes a web page that I am trying to read to stop responding.

Does anyone know how to get around this?

thanks,
William
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2008
Added on Oct 24 2008
3 comments
270 views