Forum Discussion
ben_svobodny_18
Nimbostratus
Oct 19, 2015help with http::path
Hello i am trying to add logic in to account for different branches of testing in my irule.
currently we adjust the http:path to a particular value
set apiPathStage "apiproxy/apiproxy.aspx"...
Andy_McGrath
Cumulonimbus
Oct 19, 2015If you are just trying to map 'interface.asp' to 'apiproxy/apiproxy.aspx' in the HTTP path use the following:
HTTP::path [ string map { "interface.asp" "apiproxy/apiproxy.aspx" } [string tolower HTTP::path] ]
This takes the HTTP::path value (converted to lowercase) and does a search for "interface.asp" and replaces it with "apiproxy/apiproxy.aspx" then passes it back as the HTTP::path.
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