Forum Discussion

Pradeep_Kandala's avatar
Pradeep_Kandala
Icon for Nimbostratus rankNimbostratus
Nov 19, 2012

HTTP::redirect with get body content

Hi,

 

My irule is issueing a 302 redirection in the response, but I need to add a body data in http redirect. Is it possible? if yes how ?

 

Thanks a lot in advance

 

Pradeep

 

2 Replies

  • See this article for information on the command that can do so: https://devcentral.f5.com/wiki/iRules.HTTP__respond.ashx. Post here again if you need more help, with your rule code if necessary.
  • Here's an example showing the redirect location header with some content:

     

     

    HTTP::respond 302 content {my html content} Location "https://www.example.com/new_uri"

     

     

    Aaron