PUT and DELETE methods with body parameters removed

I have a laravel API. For those who don't know this, Laravel uses the spoofing method to work with the PUT and DELETE methods, so it reads the POST call using _method = [PUT | DELETE] as a PUT or DELETE method.

We are testing our API with Postman. At the postman, I can send true DELETE and PUT calls to the server without having to fake. So far, both methods have worked fine.

Today, our beta server will allow you to use the PUT / DELETE methods, but it removes body parameters from it. This ONLY happens on our beta server, which makes me think that this is a problem with the server, but nothing has changed on our server for several months. Its CentOS 6.8 uses Apache and php 7. Requests pass, and then laravel responds quickly as if none of the body parameters exist, be it a validation error or the removal of everything, not just a certain thing.

+5
source share

All Articles