Results 1 to 2 of 2
- 10-25-2008, 03:12 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 5
- Rep Power
- 0
System.setProperty("http.agent"..) appends Java/1.6
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
- 10-25-2008, 03:20 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Check the "http.agent" value before set the property. May be somewhere within your application it can be appended, system cannot append that as far as I know.
Similar Threads
-
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
<core:forEach var="" begin="+<%=j%>+">???
By freddieMaize in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-27-2008, 01:20 AM -
System.out.print("Hello!")
By Console in forum IntroductionsReplies: 6Last Post: 09-22-2008, 12:09 AM -
[SOLVED] HELP! Is this BUG? System.out.println() always shows "@9304b1"
By dark_cybernetics in forum New To JavaReplies: 11Last Post: 08-19-2008, 11:29 AM -
"Jumble" or "Scramble" Program
By Shadow22202 in forum Java AppletsReplies: 8Last Post: 04-30-2008, 03:42 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks