[irev] retrieve HTTP header info

Nicolas Cueto niconiko at gmail.com
Fri Mar 23 00:14:11 EDT 2012


Hello All,

I want to identify mobile users who visit my webpage. By looking at
the HTTP header info.

By way of experimentation/curiosity, I figured out a PHP way of doing
this. For example, here's the PHP-retrieved header data from my
browser:

---------
[Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[Accept-Charset] => ISO-8859-1,utf-8;q=0.7,*;q=0.3 [Accept-Encoding]
=> gzip,deflate,sdch [Accept-Language] => en-US,en;q=0.8
[Cache-Control] => max-age=259200 [Connection] => keep-alive [Cookie]
=> myCookie  [Host] => kweto.com [User-Agent] => Mozilla/5.0 (Windows
NT 6.0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83
Safari/535.11 [Via] => 1.1 unknown:8080 (squid/2.5.STABLE6)
[X-Forwarded-For] => 1.1.1.1 )
---------

All the same, I'd much prefer to use an irev script.

Is there already a way for an irev script to do this?

Thank you.

--
Nicolas Cueto




More information about the Use-livecode mailing list