Forum Discussion

Melissa_Good_10's avatar
Melissa_Good_10
Icon for Nimbostratus rankNimbostratus
Mar 22, 2009

HTTP redirect with POST data intact

Hello.

 

 

Our Web developers have inserted a form into our website, that collects client data (name, phone number, email address) but the form it collects on is an externally hosted website.

 

 

They were working to do a proxypass function in Apache, but the webservers do not have internet access (they are behind the Big IP on an isolated DMZ) and they can't send the POST data to the external site from them.

 

 

An iRule will redirect the request, but the POST data is lost when the client redirects after hitting 'submit'. I have read elsewhere in the forum that this type of redirect is not possible using the http:redirect function - my question is, can this function be done by any iRule process?

 

 

Thanks for any info...

2 Replies

  • Have you looked at the following article

     

    https://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&postid=33523&view=topic

     

    This might provide some assistance to you if you haven't already seen it

     

    Hope this helps,

     

    CB
  • The gist of the post cmghatt referenced is that it would be much easier to change the page on the application which generates the POST request. If you can change the application itself, that would be ideal. Or if the response from the application which generates the POST request is sent through an LTM virtual server, you could use a stream profile and STREAM::expression based iRule to rewrite the form action to the correct location (and/or protocol). It isn't very easy/effective to try and fix the problem after the POST request has already been made from the client.

     

     

    Aaron