Forum Discussion
jrok_47156
Aug 30, 2012Nimbostratus
HTTP::uri equality question
This may be a very simple question but I have looked for a few hours now and cannot find a good answer.
Why does this work?
switch [HTTP::uri] {
"/maintenance" {
Send an HTTP 200 response with a Javascript meta-refresh
HTTP::respond 200 content \
"
But this throws an SSL connection reset?
if { [HTTP::uri] == "/maintenance" }
{
HTTP::respond 200 content \
"
I also tried "equals" but to no avail. Does HTTP::uri have special if {} rules that only allow "starts_with", "contains", etc.?
- Michael_YatesNimbostratusHi jrok,
- jrok_47156NimbostratusHey thanks Michael.
- Michael_YatesNimbostratusYes, that will work, but it's an absolute search.
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