# Post metod to a VIP which has HTTP\_TO HTTPS redirect irule

**URL:** <https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480>\
**Category:** Technical Forums\
**Tags:** big-ip, ltm, application-delivery\
**Created:** [December 17, 2015, 6:44pm UTC](https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480 "2015-12-17T18:44:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_187467](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@M\_187467](https://community.f5.com/u/M_187467)\
**Post date:** [December 17, 2015, 6:44pm UTC](https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480/1 "2015-12-17T18:44:20Z")

</div>

Hello Friends,

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

When i post to [http://abc.xyz.com](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

---

<div class="post-metadata">

**Author:** ![Hannes\_Rapp\_162](https://avatars.discourse-cdn.com/v4/letter/h/8797f3/32.png) [@Hannes\_Rapp\_162](https://community.f5.com/u/Hannes_Rapp_162)\
**Post date:** [December 17, 2015, 11:31pm UTC](https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480/2 "2015-12-17T23:31:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Hannes\_Rapp](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@Hannes\_Rapp](https://community.f5.com/u/Hannes_Rapp)\
**Post date:** [December 17, 2015, 11:31pm UTC](https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480/3 "2015-12-17T23:31:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![M\_187467](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@M\_187467](https://community.f5.com/u/M_187467)\
**Post date:** [December 18, 2015, 3:49am UTC](https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480/4 "2015-12-18T03:49:11Z")

</div>

Thank you, Hannes -SAM

---

<div class="post-metadata">

**Author:** ![M\_187467](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@M\_187467](https://community.f5.com/u/M_187467)\
**Post date:** [December 18, 2015, 3:49am UTC](https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480/5 "2015-12-18T03:49:11Z")

</div>

Thank you, Hannes -SAM

---

<div class="post-metadata">

**Author:** ![M\_187467](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@M\_187467](https://community.f5.com/u/M_187467)\
**Post date:** [December 18, 2015, 3:49am UTC](https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480/6 "2015-12-18T03:49:11Z")

</div>

Thank you, Hannes -SAM

---

<div class="post-metadata">

**Author:** ![M\_187467](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@M\_187467](https://community.f5.com/u/M_187467)\
**Post date:** [December 18, 2015, 3:49am UTC](https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480/7 "2015-12-18T03:49:11Z")

</div>

Thank you, Hannes -SAM

---

<div class="post-metadata">

**Author:** ![Michael\_Jenkins](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@Michael\_Jenkins](https://community.f5.com/u/Michael_Jenkins)\
**Post date:** [December 18, 2015, 11:23am UTC](https://community.f5.com/t/post-metod-to-a-vip-which-has-http-to-https-redirect-irule/3480/8 "2015-12-18T11:23:13Z")

</div>

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](https://devcentral.f5.com/codeshare/http-post-redirect-preserving-post-data). May not always be the right way to do it, but it is an option as well.
