mirror of
https://github.com/curl/curl.git
synced 2026-08-24 11:33:33 +03:00
aws_sigv4: fall back to UNSIGNED-PAYLOAD for sign_as_s3
all s3 requests default to UNSIGNED-PAYLOAD and add the required x-amz-content-sha256 header. this allows CURLAUTH_AWS_SIGV4 to correctly sign s3 requests to amazon with no additional configuration Signed-off-by: Casey Bodley <cbodley@redhat.com> Closes #9995
This commit is contained in:
parent
ebef55a61d
commit
495d09810a
16 changed files with 1067 additions and 55 deletions
|
|
@ -101,5 +101,9 @@ calculation. For POST requests, this is a checksum of the provided
|
|||
\fICURLOPT_POSTFIELDS(3)\fP. Otherwise, it's the checksum of an empty buffer.
|
||||
For requests like PUT, you can provide your own checksum in a HTTP header named
|
||||
\fBx-provider2-content-sha256\fP.
|
||||
.PP
|
||||
For \fBaws:s3\fP, a \fBx-amz-content-sha256\fP header is added to every request
|
||||
if not already present. For s3 requests with unknown payload, this header takes
|
||||
the special value "UNSIGNED-PAYLOAD".
|
||||
.SH "SEE ALSO"
|
||||
.BR CURLOPT_HEADEROPT "(3), " CURLOPT_HTTPHEADER "(3), "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue