easy:SetOpt_AWS_SigV4(param)
Pass a string that is the collection of specific arguments are used for
creating outgoing authentication headers. The format of the param
option is:
provider1[:provider2[:region[:service]]] |
providerX
region
service
NOTE: This call sets #CURLOPT_HTTPAUTH
to #CURLAUTH_AWS_SIGV4
.
Calling #CURLOPT_HTTPAUTH
with #CURLAUTH_AWS_SIGV4
is the same
as calling this with "aws:amz" in parameter.
Example with "Test:Try", when curl will do the algorithm, it will generate "TEST-HMAC-SHA256" for "Algorithm", "x-try-date" and "X-Try-Date" for "date", "test4_request" for "request type", "SignedHeaders=content-type;host;x-try-date" for "signed headers"
If you use just "test", instead of "test:try", test will be used for all strings generated.