Rev cgi way to GET browser info
niconiko at gmail.com
Mon Mar 2 18:51:53 EST 2009
Wish I knew the terminology that'd make clearer this question...
What command (global?) do I work with in a Rev cgi script
when I want to retrieve information about the browser (user agent?)
during a GET command?
I have managed to retrieve server-related globals using this
repeat for each item i in the globals
put i && "=" && value(i) & return after buffer
read from stdin until empty
put it after buffer
put "Content-Type: text/plain" & cr
put "Content-Length:" && the length of buffer & cr & cr
However, nowhere in that returned data is there information
about the user's browser.
(The reason I'm after this is that, to individualize the look of
my webpages for cell-phone users here in Japan, I first need
to know what phone-provider a person is using when visiting
one of my web-urls. From PHP guides on this topic, it seems
that this information is passed invisibly between the cell-phone's
browser and the web-server.)
Hope that was clear.
More information about the Use-livecode