[Seaside] Browser information

Philippe Marschall philippe.marschall at gmail.com
Wed Nov 12 17:55:39 UTC 2014


On Wed, Nov 12, 2014 at 5:02 PM, Johan Brichau <johan at inceptive.be> wrote:
> Hi David,
>
> This is info that is being sent along with the request headers.
> In Seaside, you can access the WARequest instance with “self requestContext request”.
>
> The info you are looking for is in the 'User-Agent’ header.
> The source IP is in there as well, but I don’t know that header name by heart.

The selector is #userAgent. If you're behind a reverse proxy the
headers are 'x-forwarded-for' or 'forwarded-for' depending on the
server.

Note the user agent string is horribly underspecified.

Cheers
Philippe


More information about the seaside mailing list