Forum Discussion

M_187467's avatar
M_187467
Icon for Nimbostratus rankNimbostratus
Dec 17, 2015

Post metod to a VIP which has HTTP_TO HTTPS redirect irule

Hello Friends,

 

I have been trying to use post method for an application hosted in LB VIrutal server say http://abc.xyz.com and this virtual is set with http_to _https redirect irule.

 

When i post to http://abc.xyz.com it doesnt works , but same works for

 

is there any additional configuraions or changes needs to be done in irule to make the post work ?

 

Please help, thanks in advance,

 

-SAM

 

7 Replies

  • HTTP protocol does not have a redirect for POST method. You can achieve what you're looking for with HTTP respond 307 status redirect (repeat POST request to a new location). Note that Web Browsers will prompt the user to confirm such redirects. By design, its not meant to work the same as GET redirects due to security constraints. Personally, I see POST 307 redirect as a last-resort workaround which is acceptable for internal-use-only corporate tools. In case of client-facing apps, I would not recommend it. Such security-related prompts at your web-site won't contribute to positive customer experience.

     

  • HTTP protocol does not have a redirect for POST method. You can achieve what you're looking for with HTTP respond 307 status redirect (repeat POST request to a new location). Note that Web Browsers will prompt the user to confirm such redirects. By design, its not meant to work the same as GET redirects due to security constraints. Personally, I see POST 307 redirect as a last-resort workaround which is acceptable for internal-use-only corporate tools. In case of client-facing apps, I would not recommend it. Such security-related prompts at your web-site won't contribute to positive customer experience.

     

  • In addition to Hannes' response - which would be much simpler - it's possible to use an iRule to return a page that resubmits the request automatically. That'd be something like what's in this codeshare. May not always be the right way to do it, but it is an option as well.