Forum Discussion
<http_request> - ERR_NOT_SUPPORTED (line 2) invoked from within "HTTP::query"</http_request>
You may not evaluate HTTP request after you execute a HTTP::respond or HTTP::redirect... F5 only enforced this in new versions.
In version 14.0, F5 introduced a new command to prevent this issue : HTTP::has_responded
try this code to leave the irule if another one made this one invalid.
when HTTP_REQUEST {
if {[HTTP::has_responded]} {return}
set mainPath "show-error-page"
set mainPathExists "FALSE"
set httpQuery [HTTP::query]
set httpUri [HTTP::uri]
set httpUrlMin [call ir_asm_library::getMinimalizedUrl]
if {$httpUri contains $mainPath}
{
set mainPathExists "TRUE"
set iFileErrorPageName [URI::query [HTTP::uri] "page"]
}
}
- Nick_T1May 22, 2019Nimbostratus
Using "event disable all" followed by "return" is no longer sufficient under v14.1? Only the `HTTP::has_responded` method?
I was previously accomplishing this behavior by putting those two commands in any iRule where I sent a response, but maybe there is a separate issue (like I need to do a log before the redirect first?)
Recent Discussions
Related Content
* 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