python cgi browser detection???
Manus Hand
mjhand at concentric.net
Sat May 27 01:40:28 EDT 2000
Information on the browser that invoked your CGI script is
available in os.environ['HTTP_USER_AGENT']
Hope that helps,
Manus
tiddlerdeja at my-deja.com wrote:
>
> I'd like to use Python for a CGI script which would detect the type of
> browser a request has been made from and then return an apporpriate
> response.
>
> E.g. If I get a request from IE5 I'd like to return HTML
> If I get a request from a WAP browser, I'd like to return WML.
>
> Any information greatly appreciated.
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
More information about the Python-list
mailing list