Forum Discussion

raddboy_74501's avatar
raddboy_74501
Icon for Nimbostratus rankNimbostratus
Apr 02, 2009

Need 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

3 Replies

  • 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.

     

     

    Aaron
  • Out of curiosity, does anyone know why can't you set the status using HTTP::status $new_status?

     

     

    Aaron