We have a RestFUL API we build in PHP. If we make the request:
curl -u api-key:api-passphrase https://api.domain.com/v1/product -X POST
We get back:
411 - Length Required
Though if we simply add -d ""
onto the request it works and no 411 error. Is there a way to not require adding -d to the curl command?
We are using lighttpd web server, and believe its lighttpd NOT php who is returning the 411 error.