Re: Modifying OPTIONS header response

From: Date: Tue, 07 Oct 2003 13:41:43 +0000
Subject: Re: Modifying OPTIONS header response
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-165302@lists.php.net to get a copy of this message
Did you restart apache? It works for me. Before: Allow: GET, HEAD, OPTIONS, TRACE After: Allow: GET, HEAD, POST, OPTIONS, TRACE, PROPFIND, COPY, MOVE, LOCK options.php: <?php header('Allow: GET, HEAD, POST, OPTIONS, TRACE, PROPFIND, COPY, MOVE, LOCK'); ?> Oscar F wrote:
Hey Marek, Thanks for the reply. Nope, doesn't do anything... O. On Tue, 2003-10-07 at 09:19, Marek Kilimajer wrote:
Just a wild guess, but try this in apache config: Script OPTIONS /options.php Oscar F wrote:
Hello all, I'm working on a php/dav server and I'm having a problem. When the client sends an OPTIONS request to see what methods are allowed, they only get "Allow: GET, HEAD, POST, OPTIONS, TRACE" back from apache. This seems to me a problem since it does not include PROPFIND, COPY, MOVE, LOCK, etc. and some clients don't even try to lock the file and open it read only, I guess because they don't see LOCK, etc. as allowed. My question is, how can I modify the OPTIONS response or at least the Allowed methods?. I can capture/handle HEADs, GETs and everything fine but OPTIONS does not seem to work. Any hints?. Apache/2.0.43 PHP 4.3.0 Thanks. - O.


« previous php.general (#165302) next »