[Zope] mod_cgi patch for webdav doesn't work

Maarten Slaets maarten.slaets@kpnqwest.com
Thu, 09 Dec 1999 11:59:49 +0100


hi,
I was very pleased to hear about the webdav patch for apache.
(http://www.zope.org/Members/Brian/Misc/mod_cgi_webdav_patch.html) thanks
brian.

However, I have some trouble. I did the patch:

<snip>
bash-2.03$ diff mod_cgi.c mod_cgi.c.orig 
381a382,388
>     if (r->method_number == M_OPTIONS) {
>       /* 99 out of 100 CGI scripts, this is all they support */
>       r->allowed |= (1 << M_GET);
>       r->allowed |= (1 << M_POST);
>       return DECLINED;
>     }
> 
</snip>

, I recompiled apache, re-installed it, restarted it. But when I Try to call
the HTTP OPTIONS, apache acts stupid :)

<snip>
bash-2.03$ telnet zopera 80
Trying 195.207.92.22...
Connected to zopera.is.Belgium.EU.net.
Escape character is '^]'.
OPTIONS /cust HTTP/1.1

HTTP/1.1 400 Bad Request
Date: Thu, 09 Dec 1999 10:37:56 GMT
Server: Apache/1.3.9 (Unix)
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

182
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Bad Request</H1>
Your browser sent a request that this server could not understand.<P>
client sent HTTP/1.1 request without hostname (see RFC2068 section 9, and
14.23): /cust<P>
<HR>
<ADDRESS>Apache/1.3.9 Server at zopera.is.belgium.eu.net Port 80</ADDRESS>
</BODY></HTML>

0

Connection closed by foreign host.
</snip>

What could be the cause?
My system: apache 1.3.9 - solaris 2.7 - zope 2.0.1


-- 
Maarten Slaets
Web Developer
KPNQwest Belgium
http://www.fonky.com/vcard/MaartenSlaets/