Forum Discussion
jrok_47156
Nimbostratus
Aug 30, 2012HTTP::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_Yates
Nimbostratus
Hi jrok, - jrok_47156
Nimbostratus
Hey thanks Michael. - Michael_Yates
Nimbostratus
Yes, 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