About User-Agent
[1/3] from: rondon:andrade:uol at: 13-Apr-2001 15:43
Hi, Everybody!
How can I set up the environment variable User Agent to change from REBOL to
Mozilla? The example at the Manual is not working...
Any clue ?
Thanks in advance.
Rondon
[2/3] from: al::bri::xtra::co::nz at: 14-Apr-2001 9:16
Rondon wrote:
> How can I set up the environment variable User Agent to change from REBOL
to Mozilla? The example at the Manual is not working. Any clue ?
This works for me:
if not found? find system/schemes/http/user-agent "Mozilla" [
system/schemes/http/user-agent: rejoin [
"Mozilla" "/" "4.0"
" (Compatible; REBOL " rebol/version ")"
]
]
>> system/schemes/http/user-agent
== "Mozilla/4.0 (Compatible; REBOL 2.5.0.3.1)"
I hope that helps!
Andrew Martin
ICQ: 26227169 http://members.nbci.com/AndrewMartin/
[3/3] from: rondon:andrade:uol at: 13-Apr-2001 19:51
Thank you . Andrew..
Best Regards!
Rondon