The PutObject operation fails when using aws-sdk-cpp in an application.
Summary:
The PutObject operation fails when using aws-sdk-cpp in an application.
Content (please ensure you mask any confidential information):
When executing PutObject to store an object using aws-sdk-cpp, the operation fails with the following error codes and messages:
[Code] 411 [Type] 100 [Name] MissingContentLength [Text] Unable to parse ExceptionName: MissingContentLength Message: The Content-Length header is required
Setting SetContentLength does not resolve the issue.
The reference code used is:
https://github.com/tonymarkel/OCI_AWS_CPP_SDK_S3_Examples/blob/main/listObjects.cpp
Since ListBucket and ListObject operations succeed, it is assumed that access to the object storage is correctly configured.
Version (include the version you are using, if applicable):
Tagged:
0