Forum Discussion
Scott_Pemrick_8
Nov 30, 2010Nimbostratus
iRule using WURFL API
Has anyone attempted an iRule for mobile user agent detection using a WURFL API? I was contemplating using pywurfl (python API). I have an idea of what I need to do, just curious if anyone had done ...
hooleylist
Nov 30, 2010Cirrostratus
Hi Scott,
Are you just trying to identify a mobile client by user-agent? If so, here is a recent discussion:
Detecting mobile/wap browsers via user-agent and other headers
http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/aff/5/aft/86313/afv/topic/Default.aspx86381
Or if you need the full capability reporting of WURFL, making an API call would probably be best. If the database size is ~12Mb and millions of records, you probably wouldn't want to load it into an LTM iRule table. In current LTM versions for querying an outside resource from an iRule are somewhat limited. You could use HTTP::retry to make an HTTP request to a webservice and then use logic in the iRule to handle the client's HTTP request. Deb wrote an article on this a while back:
Conditioning iRule Logic on External Information - 01 - HTTP::retry
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=105
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects