Disappearing headers
From: Rob Tweed (rtweed_at_blueyonder.co.uk)
Date: 12/10/03
- Next message: Erwin Moller: "Looking for a FlatFile database driver for PHP"
- Previous message: Tony Marston: "Re: What is/is not considered to be good OO programming"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 10 Dec 2003 15:02:45 +0000
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 ---
- Next message: Erwin Moller: "Looking for a FlatFile database driver for PHP"
- Previous message: Tony Marston: "Re: What is/is not considered to be good OO programming"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|