We are seeing different behavior or a new error when calling an API using a POST with no body. Does apigee now require the Content-Length header? In version 4.16.01 this worked without issue but in 4.17.01.x it's throwing a 411 error. Has this changed and if so why?
curl -i -X POST 'https://dev-apis.domain.com/v1/hello/user'
HTTP/1.1 200 Connection established
HTTP/1.1 411 Length Required
Date: Mon, 15 May 2017 20:26:02 GMT
Content-Type: application/json
Content-Length: 122
Connection: keep-alive
Server: Apigee Router
{"fault":{"faultstring":"Content-Length is missing","detail":{"errorcode":"messaging.adaptors.http.flow.LengthRequired"}}}
Hi,
You can customise this behavior so it might be you had that set.
in /opt/apigee/customer/application create the file "message-processor.properties" , if it does
not already exist. Then add the line
conf_http_HTTPRequest.allow.POST.without.content.length=true
Restart the MP in the usual way. That should work for you.
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |