Forum Discussion
nvitiritti_1955
Nimbostratus
Apr 03, 2015URI dissection for URL rewrite
I'm looking to dissect the URI of an incoming request so that I can then use the parameters to rewrite the URL being passed to the server. So if I have the following URL being sent by a user/applicat...
Michael_Jenkins
Cirrostratus
Apr 06, 2015If I understand correctly, you could use the URI::query command to parse the query parameters... Something like this:
when HTTP_REQUEST {
set to [URI::query [HTTP::uri] "to"]
set text [URI::query [HTTP::uri] "text"]
Update the uri (the additional vars (username, password, from) would have to be set as well.
HTTP::uri "cgi-bin/sendsms?username=${username}&password=${password}&from=${from}&to=${to}&text=${text}"
}
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