Rev cgi way to GET browser info

Nicolas Cueto niconiko at
Mon Mar 2 18:51:53 EST 2009

Hello List,

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

  on startup
    repeat for each item i in the globals
     put i && "=" && value(i) & return after buffer
    end repeat
    read from stdin until empty
    put it after buffer
    put "Content-Type: text/plain" & cr
    put "Content-Length:" && the length of buffer & cr & cr
    put buffer
end startup

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 mailing list