Disappearing headers

From: Rob Tweed (rtweed_at_blueyonder.co.uk)
Date: 12/10/03


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
---


Relevant Pages

  • How to handle multiple incoming TCP connections in Windows Services
    ... receives a string input and sends a string output. ... I need the service to accept multiple incoming requests. ... TcpClient tcpClient = new TcpClient; ... The code I have above works for one incoming request only. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: HTTP Adapter
    ... You said that the process to receive the incoming ... > stream as an HTTP Request and write the data to a file. ... > input stream and write it to a file. ...
    (microsoft.public.biztalk.general)
  • Re: Sample Logon Script
    ... ---> Trying each entry in the SMS Client Remote ... Retry request id for "AMOEPXKF" set to "WKSGREEN" ... Getting a new request from queue "Incoming" after 100 ...
    (microsoft.public.sms.admin)
  • An urgent issue about ICMP(help !!!!!!!1)
    ... I want to enable ICMP options programmically intead of using windows ... allow incoming timestamp request ... allow outgoing destination unreachable ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Find a thread referance my name
    ... On each incoming chat request a new thread is created which in turn connects ... to the server specified by the incoming request. ...
    (microsoft.public.dotnet.languages.csharp)