Forum Discussion
Jul 31, 2014
BIG-IP : helper functions for composing urls with query-params
f5 BIG-IP LTM VE v11.4.0 on ESXi
In my irule, I need to construct a url from multiple segments.
Each segment is run-time loaded from a data-file.
Segment form is only partially known at design...
Arnaud_Lemaire
Employee
Aug 01, 2014hi, Question mark is automatically added when you manipulate HTTP::query
you can in 11.5 create proc to achieve you results:
proc add_query { query } {
if { [HTTP::query] equals "" } {
return [HTTP::query]$query
} else {
return [HTTP::query]&$query
}
}
when HTTP_REQUEST {
log local0. "-----------------------------"
log local0. "base uri: [HTTP::uri]"
log local0. "base query: [HTTP::query]"
HTTP::query [call add_query secondparam=tata]
log local0. "uri after proc: [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
