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?