The URI for sending the request should not include the name of the container.
Also, there are two problems with the request body you are sending.
- Do not encode the
/
character between the container name and the object name. - Do not encode the newline characters.
The algorithm to produce the request body should actually go in this order:
- Encode the container names.
- Encode the object names.
- Create a line of text
container/object
using the encoded names from the previous steps. - Create the request body by separating each of the lines from step 3 with a line feed character.