Forum Discussion
raddboy_74501
Nimbostratus
Apr 02, 2009Need an iRule to Return 200 with data
I have an application that absolutely doesn't play well with HTTP response code 202. I need an iRule that will examine HTTP_RESPONSE looking for HTTP::status eq 202 and change it to a 200 leaving the data untouched back to the client.
Thanks ahead for your help.
Kevin
- The_Bhattman
Nimbostratus
Have you looked at HTTP::respond ( - hoolio
Cirrostratus
Do you need to send the payload to the client? If so, and you have an HTTP profile on the VIP, you'd need to collect the payload for 202 responses and then use HTTP::respond as cmbhatt suggests to send a 200 response with the original payload. You can check the HTTP::collect wiki page (Click here) for examples. - hoolio
Cirrostratus
Out of curiosity, does anyone know why can't you set the status using HTTP::status $new_status?
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