A
A
Alexander Mekhonoshin2013-12-09 01:29:17
PHP
Alexander Mekhonoshin, 2013-12-09 01:29:17

How to get passed data using PUT/DELETE methods through nginx?

I'm trying to build REST through regular PHP and Nginx... But it doesn't work because PUT/DELETE headers give them shock...
PUT/DELETE methods are WebDAV as Nginx claims, but I want to use them in php scripts as well , as well as GET, POST in order to have a complete CRUD set for REST.
The first attempt was to send, for example, a put request.
Failed with http code 405 not allowed.
The second attempt was to add
dav_methods PUT DELETE;
nginx's .conf file to the server {} section.
Failed with 409 conflict code.
Most likely the problem is on the nginx side (php does not send its headers to the packets, i.e. it may not get to it), but where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey P, 2016-02-03
@ruddy22

stackoverflow.com/questions/17610783/nginx-web-dav...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question