[PHP] Modifying OPTIONS header response
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Modifying OPTIONS header response
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Modifying OPTIONS header response
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Modifying OPTIONS header response
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php