Forum Discussion
uvotguy_122534
Nimbostratus
Jul 14, 2013How to modify a query string
Hello, I am new to the F5 and iRules, so I took a stab at writing a rule to modify part of a query string. In this case, I was trying to remove the port number from a hostname embedded in a query str...
Kevin_Stewart
Employee
Jul 14, 2013The HTTP::query command only reads. It does not set. To get around this, one possible solution is to use the HTTP::uri command instead. The query string will be part of the URI, so as long as that string doesn't appear in the path before the query string it should work for you.
HTTP::uri [string map { "mysite.something.com:8081" "mysite.something.com" } [HTTP::uri]]
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