Support for other HTTP methods
Added by evrt over 12 years ago
Hi,
I'm the author of SabreDAV, a WebDAV framework for PHP.
I'm trying to get this to run on lighttpd.
Almost everything works thusfar, except the MKCALENDAR http method. The response I'm getting is pasted below.
I couldn't find anything specifically in the configuration that allows me to 'turn on' certain methods. What am I missing?
Thank you,
Evert
HTTP/1.0 501 Not Implemented
Content-Type: text/html
Content-Length: 357
Connection: close
Date: Wed, 21 Sep 2011 15:31:11 GMT
Server: lighttpd/1.4.26
Expires: 0
Cache-Control: no-cache
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>501 - Not Implemented</title>
</head>
<body>
<h1>501 - Not Implemented</h1>
</body>
</html>
Replies (5)
RE: Support for other HTTP methods - Added by evrt over 12 years ago
This patch may do the trick. Currently untested.
RE: Support for other HTTP methods - Added by darix over 12 years ago
the chunk in src/keyvalue.c is incorrect.
mostlikely you meant to say
{ HTTP_METHOD_MKCALENDAR, "MKCALENDAR" },
RE: Support for other HTTP methods - Added by evrt over 12 years ago
Yes I just saw that :)
Also I feel it would be better to actually allow any method, as lighty also doesn't include ACL and many more. There are over a hundred.
Anyway.. corrected patch
RE: Support for other HTTP methods - Added by evrt over 12 years ago
Just got confirmation that the patch is correct.