title: Testing AWS API Gateway with cURL
body: <p>I do have a simple AWS API Gateway implementation protected by an AWS_IAM Authorization.</p>
  
  <p>I just want to test from command line via cURL :</p>
  
  <pre class="lang-sh prettyprint-override"><code>curl --location --request GET 'https://&lt;API_ID&gt;.execute-api.eu-west-1.amazonaws.com/stage?type=type&amp;category=category&amp;lc=lc&amp;passprhase=passprhase&amp;product=product'
  --header 'Authorization: AWS4-HMAC-SHA256 Credential=&lt;AWS_ACCESS_KEY&gt;/20200127/eu-west-1/execute-api/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=&lt;AWS_SECRET_ACCESS_KEY&gt;' --header 'Content-Type: application/json' \
  --data-raw '{"query":"","variables":{}}'
  </code></pre>
  
  <p>but keep getting the follow error :</p>
  
  <pre><code>Authorization header requires existence of either a 'X-Amz-Date' or a 'Date' header.
  </code></pre>
  
  <p>Can someone advice what am I doing wrong ?</p>