将HTTP POST请求重定向到HTTPS POST请求 [英] Redirecting HTTP POST requests to HTTPS POST requests

查看:214
本文介绍了将HTTP POST请求重定向到HTTPS POST请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我刚刚将服务器设置为使用SSL证书通过HTTPS运行.该网站是图像主机,ShareX的开发人员已将我的网站包含在他们的应用程序中.

I recently just setup my server to run over HTTPS with an SSL certificate. The website is an image host and the developers at ShareX have included my site in their application.

我的问题是,所有HTTP请求都会自动重定向到HTTPS.该网站具有魅力,ShareX遇到了问题.

My problem is, all HTTP requests are automatically redirected to HTTPS. The website works a charm, ShareX runs into a problem.

如何告诉nginx将HTTP POST请求重定向到HTTPS,但仍然发出POST请求?希望这听起来像是有益的.

How can I tell nginx to redirect HTTP POST requests to HTTPS, but still make the POST request? Hope that's as informative as it sounds.

推荐答案

您无法重定向.您可以通过HTTP或HTTPS发送POST请求.这与 RFC 7231,第4.3.3节

You cannot redirect. Either you send a POST request over HTTP or over HTTPS. This is consistent with RFC 7231, Section 4.3.3.

这篇关于将HTTP POST请求重定向到HTTPS POST请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆