mnot’s blog

Design depends largely on constraints.” — Charles Eames

Wednesday, 19 October 2005

OPTIONS Getting Better

Roy Fielding has just closed a bug that’s been around since 1996, and which I’ve previously lamented here;

The block has now been deleted from all active branches of httpd (1.3.35, 2.0.56, 2.1+). Thanks for sending in the more complicated patches, but I feel that CGI scripts should be able to handle all methods by now (or be fixed to do so properly).

Broken CGI scripts, you’ve been warned. Now if PHP would get its act together, we could implement all of WebDAV entirely in CGI, and start using OPTIONS for even more interesting things.


Filed under: Web

3 Comments

PJ said:

What's PHP got to do with implementing WebDAV entirely in CGI? Perl, Python, C, heck even bash are valid cgi programming languages.

Friday, October 21 2005 at 11:21 AM +10:00

Mark Nottingham said:

Read the referenced entry and bug. In a nutshell, it messes with the Allow header -- even on non-PHP resources.

Friday, October 21 2005 at 3:10 PM +10:00

Jason said:

Mark, I've been following your entries on OPTIONS request in apache esp. in regards to PHP. Very informative, thank you.

However, I'm a bit confused. You reference the apache bug and how now that it is fixed we supposedly have more control over http header requests.

I'm not quite sure how.

Specifically, I've been playing with HTTP_WebDAV_Server from http://pear.php.net/package/HTTP_WebDAV_Server.

I have it installed and running... but, it doesn't work becuase (as far as I can tell so far) Apache is catching the OPTIONS request (and sending back it's own response) before it gets to PHP. If I'm reading the bug fix above correctly, I should now somehow be able to prevent this?

Any help would be great. I'll continue digging and if I find more out, I will post it here.

Wednesday, November 9 2005 at 8:02 AM +10:00

Creative Commons