我正在尝试调用 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/