You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
I tried to override the HTTP user agent being sent when using the http module with Rhino by editing the start up script but "Java/1.6.0_18" kept getting appended to it.
I tried to override the HTTP user agent being sent when using the http module with Rhino by editing the start up script but "Java/1.6.0_18" kept getting appended to it.
I edited narwal-rhino to include:
JAVA_OPTS="-Dhttp.agent=Mozilla/5.0"
But requests in my Apache log looked like:
71.232.15.*** - - [20/May/2010:01:41:02 -0400] "POST / HTTP/1.1" 200 5285 "-" "Mozilla/5.0 Java/1.6.0_18"
I didn't have a chance to dig into this further, but patching the http module to include:
connection.setRequestProperty ( "User-agent", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081202 Firefox (Debian-2.0.0.19-0etch1)" );
will let you manually override it in the code.
-Thanks
The text was updated successfully, but these errors were encountered: