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

EnforceEmptyJSONObjectPayload not working

edited Nov 5, 2019 9:04AM in Integration 6 comments

Summary

HTTP POST without payload requires Content-Length header to be passed with value 0. OIC doesn't do that by default, and suggests using the EnforceEmptyJSONObjectPayload parameter to enforce that.

Content

Trying to do an HTTP POST from OIC for which I'm not supposed to pass any payload. Target server however requires a Content-Length header to be passed with value 0 in that case, which OIC doesn't do by default.

The error message I'm getting suggests to set EnforceEmptyJSONObjectPayload in the ConnectivityProperties for this REST call, but that doesn't seem to work. Tried setting it to true, but I keep on getting the same error message.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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