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
In 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
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