title: How to pass headers from AWS API Gateway
body: <p>I'm passing the addition key-value pairs from lambda function, same as mention in <a href="https://github.com/awslabs/aws-apigateway-lambda-authorizer-blueprints/blob/4920d93a5f67bb445be57b8e1aa88967a036e0e3/blueprints/nodejs/index.js#L66" rel="nofollow noreferrer">aws labs</a>. Then in API Gateway I have setup the body mapping templates in integration request. (<a href="http://pix.toile-libre.org/upload/original/1509020092.png" rel="nofollow noreferrer">Check this</a>). </p>
  
  <p>But when request goes to the endpoint (PHP) then I'm unable to get any data. It is empty array <code>print_r($_REQUEST);</code></p>
  
  <p>I checked cloudWatch this is what it is showing.
  <code>
  Endpoint request body after transformations: 
  { "userData" : "{"city":"USA","Name":"Sanket","id":3}" }
  </code></p>
  
  <p>Additional info - 
  When I print <code>print_r($_REQUEST);</code> then it is empty array but when I print <code>$request-&gt;getContent();</code> it shows all the data.</p>
  
  <p><strong>UPDATE - I</strong>
  <a href="https://forums.aws.amazon.com/thread.jspa?threadID=266525" rel="nofollow noreferrer">Additional information here</a></p>