http - 如何在没有 https 重定向的情况下使用 AWS API Gateway

标签 http arduino aws-api-gateway

我正在尝试调用 api 网关端点并从 arduino 调用 lambda 函数。 Arduino不支持https协议(protocol),我只能使用不安全的http。

这是来自端点的响应:

HTTP/1.0 301 Moved Permanently
X-Cache: Redirect from cloudfront
X-Amz-Cf-Id: N_y2-yhi7hT4-RHzI8SdUcMjUYfLYCMO3rX3d4qe3Y-TcAAdIG269A==
Connection: Close
Content-Type: text/html
Date: Thu, 09 Feb 2017 09:48:51 GMT
Location: https://id.execute-api.us-east-1.amazonaws.com/dev/pay
Server: CloudFront
Via: 1.1 4cef090fba24867bb1a518bc7c5a1e98.cloudfront.net (CloudFront), 1.1 Comverse 6.2.24
Content-Length: 183

AWS方面有什么办法解决这个问题吗?

最佳答案

目前,API Gateway 不支持不安全的 HTTP Rest API。

关于http - 如何在没有 https 重定向的情况下使用 AWS API Gateway,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42134699/

相关文章:

amazon-web-services - 将WebACL应用于API网关

angular - 获取对象后更新 Angular http post 方法的对象

c - 无法使用 libcurl 将 HTTP PUT 发送到 django-piston

java - 基于表单的身份验证如何在 Spring Security 中工作?

c - Wire.read 返回有符号或无符号值

arduino - arduino 触摸屏的颜色代码

regex - AWS API Gateway Lambda 错误正则表达式的文档?

rest - REST 中的资源不支持操作时的 HTTP 状态代码 404 或 501

c++ - 尝试在按下时消除此按钮的抖动

aws-api-gateway - 从之前的 Deploy 恢复 API Gateway 资源