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 any work in this area.
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
Yes, I'm looking for the capability reporting from WURFL. The HTTP::retry is an interesting idea, thanks. Reading Deb's article, has "exec" been disabled as a command within an iRule? That might throw off my api approach.
Thanks Aaron. I really appreciate the responses. I was able to get the pywurfl working w/ an OOB request to a cgi. Then either redirect to the mobile site or use the HTTP:retry to process the original request. I trimmed down Deb's irule a little by having the cgi set a header. That way I could skip collecting and interrogating the response data. Just checked the header on the response. Thanks again.