Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php AWS API网关未传递标头_Php_Api_Amazon Web Services_Nginx_Aws Api Gateway - Fatal编程技术网

Php AWS API网关未传递标头

Php AWS API网关未传递标头,php,api,amazon-web-services,nginx,aws-api-gateway,Php,Api,Amazon Web Services,Nginx,Aws Api Gateway,我正在使用AWSAPI网关,并将请求作为HTTP代理传递给我的nginx/php fpm服务器 在我的服务器上,我打印从HTTPPOST请求到达的所有头。 在AWS上: 在“方法请求”HTTP请求头下添加了“位置”头 “集成请求”HTTP标头下映射的“位置”标头: 名称:地点 映射自:method.request.header.Location 我正在使用postman发送带有附加标头的POST请求,但标头没有转发…有什么想法吗?如果标头被发送到端点,您可以在请求日志中看到(在“测试”页面的控制

我正在使用AWSAPI网关,并将请求作为HTTP代理传递给我的nginx/php fpm服务器

在我的服务器上,我打印从HTTPPOST请求到达的所有头。 在AWS上:

  • 在“方法请求”HTTP请求头下添加了“位置”头
  • “集成请求”HTTP标头下映射的“位置”标头:
  • 名称:地点

    映射自:method.request.header.Location


    我正在使用postman发送带有附加标头的POST请求,但标头没有转发…有什么想法吗?

    如果标头被发送到端点,您可以在请求日志中看到(在“测试”页面的控制台中,或者在部署的API上的CloudWatch日志中看到)?“测试”页面中应该有详细的日志,准确地告诉您向端点发送了什么/从端点发送了什么

    这都是你的标题还是仅仅是“位置”