By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,463 Members | 774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,463 IT Pros & Developers. It's quick & easy.

Disappearing headers

P: n/a
I'm trying to handle incoming WebDAV requests myself via Apache's
rewrite engine and PHP. Everything is OK apart from this one critical

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 :
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.