Added by danzimal almost 11 years ago
I'm stuck here. I'm developing a RESTful API and using curl such as;
curl -PUT -d "id=2" 10.10.10.1/some/resource
curl -DELETE -d "id=2" 10.10.10.1/some/resource
But the REQUEST_METHOD is always POST.
I thought I might need the mod_webdav module, so I installed it, but it didn't help.
PLEASE ADVISE
Well, as it turns out, I guess I was on the wrong path (mod_webdav).
After more digging, I discovered the following curl syntax that did the trick.
curl -GET -XPUT -d "id=2" 10.10.10.1/some/resource
curl -GET -XDELETE -d "id=2" 10.10.10.1/some/resource