[Seaside] Browser information

Johan Brichau johan at inceptive.be
Wed Nov 12 16:02:11 UTC 2014


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.

Hope this gets you on your way
Johan

> On 12 Nov 2014, at 16:39, David Pennington <david at totallyobjects.com> wrote:
> 
> I am using Seaside 3.0 on VAST Smalltalk/Windows.
> 
>  I need to be able to distinguish between a page being rendered on an iPad or on a standard browser. How do I get that sort of information?
> 
> As I am working on an internal network, knowing the IP address would be sufficient for my needs.
> 
> Thanks in advance.
> 
> David
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list