You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!