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 ...
hoolio
Cirrostratus
Nov 30, 2010In Deb's example, the request which is retried to the webservice is set on this line:
set LB_request [HTTP::request]
So instead of using the client's original HTTP request, you could set it to something custom. If this was the request you wanted to send:
POST /StockQuote HTTP/1.1
Host: www.stockquoteserver.com
Content-Type: text/xml; charset="utf-8"
Content-Length: nnnn
SOAPAction: "Some-URI"
DIS
Here is something you could try testing:
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
}
You'd need to manually calculate the payload length and set the content-length header accordingly.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
