Forum Discussion
ssdigitalglobe_
Nimbostratus
Apr 21, 2014How do I change query param name inside the HTTP::query object in my iRule?
How do I change query param name inside the HTTP::query object in my iRule?
Kevin_Stewart
Employee
Apr 21, 2014If I may add, you can extend that to test for specific param names. Example:
when HTTP_REQUEST {
if { [string tolower [HTTP::query]] contains "qc=" } {
HTTP::query "qd=[URI::query ?[HTTP::query] qc]"
}
}
You could also change it with a string map:
when HTTP_REQUEST {
if { string tolower [HTTP::query]] contains "qc=" } {
HTTP::query [string map -nocase {"qc=" "qd="} [HTTP::query]]
}
}
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