Anyone ever had issues with casing in headers and AWS elasticsearch service? Trying to call _cat/health
, but the service returns 403. Connection: Close
doesn't work, Connection: close
works. This is annoying in .NET Framework where the casing is forced.
We're using elasticsearch 5.6 in AWS elasticsearch service.
Example of a call that doesn't work (in postman):
Accept: application/json
Connection: Close
cache-control: no-cache
Postman-Token: xxxxxxxxxxxxxxx
Host: xxxxxxxxxxxxxxx
X-Amz-Date: 20181130T075307Z
Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxxxxxxxxx, SignedHeaders=accept;cache-control;connection;host;postman-token;x-amz-date, Signature=xxxxxxxxxxxxxxx
User-Agent: PostmanRuntime/7.4.0
accept-encoding: gzip, deflate
Example of a call that works:
Accept: application/json
Connection: close
cache-control: no-cache
Postman-Token: xxxxxxxxxxxxxxx
Host: xxxxxxxxxxxxxxx
X-Amz-Date: 20181130T075307Z
Authorization: AWS4-HMAC-SHA256 Credential=xxxxxxxxxxxxxxx, SignedHeaders=accept;cache-control;connection;host;postman-token;x-amz-date, Signature=xxxxxxxxxxxxxxx
User-Agent: PostmanRuntime/7.4.0
accept-encoding: gzip, deflate
Is AWS really that strict when it comes to headers? Has anyone had any experience with this?