okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
737 stars 91 forks source link

Adds a check if the 'host' header is set, and uses that in canonical … #57

Closed iddv closed 5 years ago

iddv commented 5 years ago

If 'host' is passed as an HTTP header, make it part of the canonical request. If this does not happen, the host extracted from the URI will be used to create the canonical header. The mismatch between host header and header listed in the canonical request will authentication failures, as the signature is calculated over the entire request