--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
On Fri, Sep 17, 2010 at 9:30 AM, wyz <wangy...@gmail.com> wrote:
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
--
http://lupulu.li
skype: effe.to
[0] http://msdn.microsoft.com/en-us/library/system.web.httpbrowsercapabilities_properties.aspx
[1] http://php.net/manual/en/function.get-browser.php
On Fri, Sep 17, 2010 at 8:23 PM, grandfatha <dki...@googlemail.com> wrote:
> Browser features on the server side?
--
http://lupulu.li
skype: effe.to
[0] http://www.koders.com/csharp/fid884EBD8E6ACB23CBF9B6EB6749DD54A5F3501C4F.aspx
[1] http://www.koders.com/csharp/fid8163466F4B976C002F3E48A11B62FCF43D955FF8.aspx
On Fri, Sep 17, 2010 at 11:10 PM, Michael Boyd <mic.t...@gmail.com> wrote:
> The user agent doesn't tell you what browser features are available.
--
http://lupulu.li
skype: effe.to
Sounds interesting
It wouldn't be too hard to propose a simple Java API
that takes a User-Agent String and returns a set of helpers
for instance.
Here is how I redirect my visitors on express-board.fr to a specific
controller when I detect iPhone :
public static void index() {
// some code removed here
// ........
Http.Header header = Http.Request.current().headers.get("user-agent");
if(header==null){
// this happens usually due to PHP security-break detector
robots that tries to
// find bugs on web site... yes it sucks I know
return;
}
if (header.value() == null) {
// drop bad client
return;
}
String headerValue=header.value().toLowerCase();
if (headerValue.contains("iphone")) {
redirect("IPhone/index");
return;
}
// ... some more code
}
Nicolas
2010/9/18 Federico Tolomei <federico...@gmail.com>: