Forum Discussion
hu_127869
Dec 16, 2005Historic F5 Account
How to rewrite the status from 205 to 200
Hi :
I would like to rewrite http status code 205 to 200. I try to use http:respond 200 , However, the payload is erased , Any good sample for me to rewrite the status code and also keep my o...
hu_127869
Dec 16, 2005Historic F5 Account
I have a rule like this , It works sometimes , however, sometime do not , And got an error in /var/log/ltm like this
--- http_process_state_prepend - Invalid action EV_INGRESS_DATA during ST_HTTP_PREPEND_HEADERS --------------
rule httpcodechange {
when SERVER_CONNECTED {
TCP::collect
}
when SERVER_DATA {
TCP::collect 100
set httpcodeheader [findstr [TCP::payload] "HTTP/1.0" 9 "\r"]
if { $httpcodeheader eq "205 Reset Content" } {
log local0. "error=($httpcodeheader)"
TCP::payload replace 9 17 "200 OK"
}
TCP::release
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
