Re: a patch for making a webdav server work
| From: | Rasmus Lerdorf | Date: | Mon, 19 Aug 2002 16:31:31 +0000 |
| Subject: | Re: a patch for making a webdav server work | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-87087@lists.php.net to get a copy of this message | ||
> nope. OPTIONS is not handled at all by PHP at the moment, therefore i made
> this change with accept_options (OPTIONS is explicitely blocked right
> now). The other primitives which have POST data (see
> http://asg.web.cmu.edu/rfc/rfc2518.html for the details)
>
> PROPFIND
> PROPPATCH
> PUT
> MOVE
> COPY
> LOCK
>
> Just did a quick check, maybe i missed some. OPTIONS on the other hand,
> doesn't have POST data, IIRC.
>
> I'm open to other (better) solutions to the problem, but i would be really
> glad, if something goes into the main php distribution (patching php is
> not a solution for everyone ). And if anyone points me to the "right"
> solution, i'll try to make a better patch :)
If the only PHP change that is actually needed to handle DAV in userspace
is to allow POST data through on a set of DAV primitives, then I have no
problems with a patch to that effect. And I suppose you need to also
always populate HTTP_RAW_POST_DATA and then parse the XML blurb yourself.
-Rasmus