So I’m trying to download files from S3 using their AWS4-HMAC-SHA256 auth. I generate all the header values and signature in Corona but heres the thing, it doesn’t seem to work with network.request.
Using network.request in Corona I always get ‘The request signature we calculated does not match the signature you provided. Check your key and signing method.’
I can verify it is all correct by copying the corona generated header values into Postman/Advanced REST Client/resttesttest.com/
So I’m not sure what is going on behind the scenes with the headers?
Headers I am using are:
Content-Type
Host
X-Amz-Content-Sha256
X-Amz-Date
Authorization
The host one I am suspicious of, none of the other clients seem to care if it’s there or not. Like I say though all the others check out if I copy over to another REST client. I need to use it to generate the signature for the message though.
Any ideas anyone?