-
Hi everyone, I am currently writing my script in PHP/cURL. I am able to successfully get a response from the I now believe I need to send a request to the following URL: I have tried just sending a curl request to this URL with the XML contents as the body, but i get signatures do not match (because i'm not sending any signature with the request) Next, i have tried signing the request using the same method I did to create the feed document, but i get the following error: For my original request to CreateFeedDocuments, i sent the following body: I am a little confused if i need to sign the request when uploading the file to that Amazon S3 link or not. The instructions weren't very clear, and based off the Java example, it doesn't appear so.
|
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 1 reply
-
I resolved the issue: send a PUT request to this URL, no signing / Authorization headers needed. I included the following headers when sending the request. Note, you will not get a reply, but a response code 200 if successful:
Then, make sure to send the XML data through cURL:
I hope this helps the next person! |
Beta Was this translation helpful? Give feedback.
I resolved the issue:
The URL you get back, (e.g.
https://tortuga-prod-na.s3-external-1.amazonaws.com/%2FNinetyDays/amzn1.tortuga.3.3641b3e8-76e7-465a-9516-884a1d3183f3.<removed>?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20220201T180057Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=300&X-Amz-Credential=<removed>%2F20220201%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=42ded9644992bba05f5310da541b1e4a90638f37fb2d05a77f6439ac83c453c0
)send a PUT request to this URL, no signing / Authorization headers needed.
I included the following headers when sending the request. Note, you will not get a reply, but a response code 200 if successful: