Forum Discussion

David_24849's avatar
David_24849
Icon for Nimbostratus rankNimbostratus
Nov 03, 2009

Processing server content and 307 Post Redirects -> Siteminder PostPreservation

Hi,

 

I am new to iRules and TCL and have to write a rule that needs to use "HTTP::respond" to

 

rewrite the content returned by a server. The content contains a dynamically created form ( containing 1-N hidden fields ) with a method js method to force the browser to post the data on window load. I need to have the iRule transform the dynamic data to a HTTP 307 POST Redirect. This challenge is relevant to how Siteminder implements PostPresevation feature.

 

 

Any TCL/iRule God have time for some tips or to take a crack at outlining this? The content that needs to be rewritten is in the format below.

 

 

Thanks,

 

 

David

 

 

 

>>.............

 

NAME="AUTOSUBMIT" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded"

 

ACTION="http://myhost.xx.com/form.jsp">

 

 

 

 

 

1 Reply

  • Hi David,

     

     

    Can you clarify a few things? What criteria do you want to use to determine when to send an HTTP response directly from the iRule? Do you want to send the HTML listed in your post? Is there anything in the content that you need to update dynamically based on some component of the request or response or is it the same for every client?

     

     

    Also, have you checked the HTTP::respond wiki page (Click here) for some examples of how to use the command?

     

     

    Thanks,

     

    Aaron