Forum Discussion
Scott_Pemrick_8
Nimbostratus
Nov 30, 2010iRule 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 any work in this area.
7 Replies
Sort By
- hoolio
Cirrostratus
Hi Scott, - Scott_Pemrick_8
Nimbostratus
Aaron, - hoolio
Cirrostratus
HTTP::retry is probably the easiest, supported method for doing this in current versions. Yes, exec is disabled: - Scott_Pemrick_8
Nimbostratus
Thanks Aaron. One more question, and I can search for it, but do you have any examples handy on HTTP:retry to a webservice? Deb's article was calling a cgi. - hoolio
Cirrostratus
In Deb's example, the request which is retried to the webservice is set on this line:POST /StockQuote HTTP/1.1 Host: www.stockquoteserver.com Content-Type: text/xml; charset="utf-8" Content-Length: nnnn SOAPAction: "Some-URI" DIS
set LB_request {POST /StockQuote HTTP/1.1 Host: www.stockquoteserver.com Content-Type: text/xml; charset="utf-8" Content-Length: nnnn SOAPAction: "Some-URI" DIS }
- Scott_Pemrick_8
Nimbostratus
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. - hoolio
Cirrostratus
Hi Scott,
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