Author Topic: Why does my web server software disallow PUT and DELETE requests?  (Read 5601 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
I am trying to implement a REST protocol and have realized in trying to debug that my web server is disallowing the PUT request.

I have tested and confirmed this further by running:

curl -X PUT  http://www.mywebserver.com/testpage

Which for my web server gives back a 403 - Forbidden error.

The same happens for DELETE, where as for POST and GET everything is fine.

I am wondering if this is a common issue that those who use REST encounter and what the work-around might be?

I used this code in .htaccess

<Limit GET POST PUT DELETE>
  Allow from all
</Limit>

It didn't solve the problem

Re: Why does my web server software disallow PUT and DELETE requests?
« Reply #1 on: February 24, 2020, 12:39:19 AM »
Why do you post this twice?!

Check mod_security logs.