Forum Discussion
Luca_55898
Nimbostratus
Mar 22, 2012Is this valid? Http:query
I need to redirect the following:
api.mycompany.com/compute/v1/whatever-gets-typed-next
to
api.mycompany.com/compute/v2/whatever-gets-typed-next
The key is that...
hoolio
Cirrostratus
Mar 23, 2012Here's a breakdown of the common URI commands:
http://www.example.com:8080/path/to/file.ext?param1=value1¶m2=value2
[HTTP::host] = www.example.com:8080
[HTTP::uri] = /path/to/file.ext?param1=value1¶m2=value2
[HTTP::path] = /path/to/file.ext
[HTTP::query] = param1=value1¶m2=value2
[HTTP::query] returns the query string from a URI (everything after the ?). Is your "whatever-gets-typed-next" in the query string or part of the path? If the former, what you have there should work.
Aaron
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