Forum Discussion
ramann_75062
Nimbostratus
Jan 25, 2008Change Response Code
Hi @all,
is the a way to change the resonse code from a web server?
For example:
The Client call http://www.example.com/test.html
Then the client will get the ...
JRahm
Admin
Jan 25, 2008here's how to do it, though I wasn't sure which code you wanted it changed to, so reverse them if I got it wrong.
when HTTP_RESPONSE {
if { [HTTP::status] == 210 } {
HTTP::collect [HTTP::header Content-Length]
}
}
when HTTP_RESPONSE_DATA {
HTTP::respond 200 content [HTTP::payload]
}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
