What you are after here is the User Agent string which will be on the CGI
Scope as HTTP_USER_AGENT.

This string will require some parsing as it can be quite long, and contains
looks of information, not just "Android" or "iPhone".

On Fri, 29 Jan 2016 at 20:57 Benjamin Davis <[email protected]>
wrote:

> Check out http://detectmobilebrowsers.com/ This just does a simple
> redirect depending on the type, but you can use their breakdown to
> categorize what type of device it is.
>
> On Fri, Jan 29, 2016 at 1:18 PM, Jason Allen <[email protected]>
> wrote:
>
>> Hi All,
>>
>> Working on a url redirect script, and I'd like people to be able to
>> create custom redirects who's destination is determined by the device
>> requesting it.
>>
>> SmartURL.it does it, and I'm trying to figure out a way I can reproduce
>> that same functionality.
>>
>> They give you a drop down of devices
>>
>> Android
>> iPhone
>> iPad
>> Windows Phone
>> Kindle Fire
>> Kindle Reader
>> Blackberry
>>
>> I can't figure out how to get this information out of any cgi. vars.
>>
>> Any ideas?
>>
>> -Jason
>>
>> --
>> --
>> online documentation: http://openbd.org/manual/
>> http://groups.google.com/group/openbd?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Open BlueDragon" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> --
> online documentation: http://openbd.org/manual/
> http://groups.google.com/group/openbd?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Open BlueDragon" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Matthew Roach
aw2.0 Ltd

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to