I'm trying to handle incoming WebDAV requests myself via Apache's
rewrite engine and PHP. Everything is OK apart from this one critical
problem:
Depending on the HTTP request verb, I seem to be able to set certain
headers in the outgoing response and not others. For example:
- Incoming request is a LOCK, Content-Type is ignored even though I
set it with header("Content-type: text/xml"). Also If: header is
ignored ;
- Incoming request is a HEAD, Content-Length is ignored even though I
set it with header("Content-Length: 0) ;
- Incoming request is OPTIONS, DAV: is ignored, Public is ignored and
Allow: is ignored, even though I explicitly set them with an
appropriate header() function
PHP version is 4.3.4
Apache 2.0.45
It appears that either PHP or Apache or both are making their own
decisions about the headers associated with incoming HTTP verbs, and
modifying what I'm specifying.
Any ideas what might be going on? Any suggested fixes/workarounds?
---
Rob Tweed
M/Gateway Developments Ltd
Global DOMination with eXtc : http://www.mgateway.tzo.com
---