How to upload data that does not fit in memoy to AWS S3 using HTTP request

Hello @kstribrn. I spend some time with understanding this. I tried to reproduce example from there in this way: sending two request with 1024 bytes in one data chunk (+88 bytes of meta data) and one request with 0 bytes of payload - only 86 bytes of metadata. As I discovered SigV4 library doesen’t include chunk support. I changed SigV4_GenerateHTTPAuthorization function for optional calculating chunked string to sign. I also use in some way coreHTTP download example for getting temporary credentials. My request are like:

PUT /objecttoput.txt HTTP/1.1
User-Agent: [some agent]
Host: "myS3".s3.us-east-1.amazonaws.com
Connection: keep-alive
x-amz-date: 20221007T072721Z
x-amz-security-token: [from getting temporary credential]
x-amz-content-sha256: STREAMING-AWS4-HMAC-SHA256-PAYLOAD
x-amz-storage-class: REDUCED_REDUNDANCY
x-amz-decoded-content-length: 2048 (two chunks of 1024 data)
Content-Length: 2310 (2048 of data +  2 x 88 bytes metadata chunks + 86 last metadata chunk)
Authorization: AWS4-HMAC-SHA256 Credential=...

for chunk 1 and 2 got payload like this:

400;chunk-signature="chunk signature"\r\n + <1024 bytes> \r\n

last chunk only metadata

0;chunk-signature="chunk signature"\r\n\ + \r\n

Is everything fine? Im getting temporary credentials (HTTP/1.1 200 OK) but when im sending chunks reqest im getting only HTTP/1.1 400 Bad Request without any response body. Thank you for your help.