EnforceEmptyJSONObjectPayload not working
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.
Tagged:
0