Forum Discussion
Unable to consistently send resets with irule using documented methods
when HTTP_RESPONSE {
log local0. "TEST1"
if { [HTTP::status] != 200 } {
log local0. "TEST2"
HTTP::respond 404 -reset
TCP::close
}
elseif { [HTTP::payload] contains "error" } {
log local0. "TEST3"
HTTP::respond 404 -reset
TCP::close
}
else {
log local0. "TEST4"
}
}
-------------------------------------------------
when HTTP_RESPONSE {
log local0. "TEST1"
if { [HTTP::status] != 200 } {
log local0. "TEST2"
HTTP::respond 404
TCP::close
}
elseif { [HTTP::payload] contains "error" } {
log local0. "TEST3"
HTTP::respond 404
TCP::close
}
else {
log local0. "TEST4"
}
}
-------------------------------------------------
when HTTP_RESPONSE {
log local0. "TEST1"
if { [HTTP::status] != 200 } {
log local0. "TEST2"
reject
}
elseif { [HTTP::payload] contains "error" } {
log local0. "TEST3"
reject
}
else {
log local0. "TEST4"
}
}
---------------------------------------------------------
when HTTP_RESPONSE {
log local0. "TEST1"
if { [HTTP::status] != 200 } {
log local0. "TEST2"
HTTP::respond 404 -reset
}
elseif { [HTTP::payload] contains "error" } {
log local0. "TEST3"
HTTP::respond 404 -reset
}
else {
log local0. "TEST4"
}
}
--------------------------------------------------------
when HTTP_RESPONSE {
log local0. "TEST1"
if { [HTTP::status] != 200 } {
log local0. "TEST2"
HTTP::respond -reset 404
TCP::close
}
elseif { [HTTP::payload] contains "error" } {
log local0. "TEST3"
HTTP::respond -reset 404
TCP::close
}
else {
log local0. "TEST4"
}
}
---------------------------------------------------------
when HTTP_RESPONSE {
if { [HTTP::payload] contains "error" } {
HTTP::collect [HTTP::header Content-Length]
}
}
when HTTP_RESPONSE_DATA {
HTTP::respond 404 -reset
}
-------------------------------------------------------------
when HTTP_RESPONSE {
if { [HTTP::payload] contains "error" } {
HTTP::collect [HTTP::header Content-Length]
}
}
when HTTP_RESPONSE_DATA {
HTTP::respond -reset 404
}
---------------------------------------------------------------
when HTTP_RESPONSE {
if { [HTTP::payload] contains "error" } {
HTTP::collect [HTTP::header Content-Length]
}
}
when HTTP_RESPONSE_DATA {
HTTP::respond 404
}
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