Right now, Java sends a request that includes something like:
I'd rather not rewrite all the HTTP stuff myself. I tried just searching
in the JDK for the Java/1.0beta2 figuring I could just change the string,
but I couldn't find it. Perhaps it is stored as a unicode string?
An easy method of setting the User-Agent field should probably be added to
Java, so people can properly identify their programs.
Thanks, Larry Page
The User-Agent field is built in:
It looks to be a concatentation of three items:
1) the system property "http.agent"
2) the word "Java"
3) the system property "java.version"
Since the agent string that gets built has only items 2 and
3, perhaps that means "http.agent" is blank (i.e. settable)?
If you could set "http.agent" prior to establishing the URL
connection, you may be able to get the desired effect.
Just a shot in the dark...
In article <page-07019...@qwerty.stanford.edu>, pa...@cs.stanford.edu