The following reply was made to PR general/3437; it has been noted by GNATS.
From: Andrew Clark <[EMAIL PROTECTED]> To: Marc Slemko <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: general/3437: Interprets method incorrectly. Date: Sun, 22 Nov 1998 23:51:24 -0800 I Changed the script line to read 'Script PUT /cgi-bin/printenv'. I also verified that none of the files already exist. When testing, I also was sure to use a capitolized 'HTTP/1.0' this time. If anyone would like to experiment, you are welcome to telnet to the server on port 80. The hostname is veger.ppp1.com Marc Slemko wrote: > On Sat, 21 Nov 1998, Andrew Clark wrote: > > > <Directory /usr/local/www> > > Options All > > AllowOverride AuthConfig Limit > > order allow,deny > > allow from all > > </Directory> > > Script PUT /cgi-bin/putscript > > -------------------------- > > Yes, I do not have any access restrictions for testing purposes. > > The script used for put is from > > 'http://symposia.inria.fr/symposia/userdoc/put/put-c.html' > > However it does not appear that the script is even getting invoked. > > Are you sure that it isn't the script doing bogus things? If you do > "Script PUT /cgi-bin/printenv" instead (assuming printenv exists on your > server), do you see the same behaviour? > > Are you sure that there isn't a difference in that some of the files exist > and some don't? You PUT /foo, then try /foo/bar.html. ---session log--- 1 veger ~>telnet veger.ppp1.com 80 Trying 207.211.163.141... Connected to veger. Escape character is '^]'. PUT /foobar.html HTTP/1.0 HTTP/1.1 404 Not Found Date: Mon, 23 Nov 1998 07:33:40 GMT Server: Apache/1.3.3 (Unix) PHP/3.0.5 Connection: close Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>404 Not Found</TITLE> </HEAD><BODY> <H1>Not Found</H1> The requested URL /foobar.html was not found on this server.<P> </BODY></HTML> Connection closed by foreign host. 2 veger ~>telnet veger.ppp1.com 80 Trying 207.211.163.141... Connected to veger. Escape character is '^]'. PUT /foobar HTTP/1.0 HTTP/1.1 200 OK Date: Mon, 23 Nov 1998 07:34:11 GMT Server: Apache/1.3.3 (Unix) PHP/3.0.5 Connection: close Content-Type: text/html SERVER_SOFTWARE = Apache/1.3.3 (Unix) PHP/3.0.5<BR> GATEWAY_INTERFACE = CGI/1.1<BR> DOCUMENT_ROOT = /usr/local/www<BR> REDIRECT_URL = /foobar<BR> REMOTE_ADDR = 207.211.163.141<BR> SERVER_PROTOCOL = HTTP/1.0<BR> SERVER_SIGNATURE = <BR> REQUEST_METHOD = PUT<BR> QUERY_STRING = <BR> PATH = /usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin<BR> REMOTE_PORT = 13531<BR> SCRIPT_NAME = /cgi-bin/printenv<BR> REDIRECT_STATUS = 200<BR> SCRIPT_FILENAME = /usr/local/apache/share/cgi-bin/printenv<BR> SERVER_NAME = veger.ppp1.com<BR> PATH_INFO = /foobar<BR> REQUEST_URI = /foobar<BR> SERVER_PORT = 80<BR> PATH_TRANSLATED = /usr/local/www/foobar<BR> SERVER_ADMIN = [EMAIL PROTECTED]<BR> Connection closed by foreign host. 3 veger ~>telnet veger.ppp1.com 80 Trying 207.211.163.141... Connected to veger. Escape character is '^]'. GUK /foo.html HTTP/1.0 HTTP/1.1 404 Not Found Date: Mon, 23 Nov 1998 07:34:43 GMT Server: Apache/1.3.3 (Unix) PHP/3.0.5 Connection: close Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>404 Not Found</TITLE> </HEAD><BODY> <H1>Not Found</H1> The requested URL /foo.html was not found on this server.<P> </BODY></HTML> Connection closed by foreign host. 4 veger ~>telnet veger.ppp1.com 80 Trying 207.211.163.141... Connected to veger. Escape character is '^]'. GUK /foo HTTP/1.0 HTTP/1.1 501 Method Not Implemented Date: Mon, 23 Nov 1998 07:34:58 GMT Server: Apache/1.3.3 (Unix) PHP/3.0.5 Allow: GET, HEAD, PUT, OPTIONS, TRACE Connection: close Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>501 Method Not Implemented</TITLE> </HEAD><BODY> <H1>Method Not Implemented</H1> GUK to /foo not supported.<P> </BODY></HTML> Connection closed by foreign host. ---------------- ---access.log--- 207.211.163.141 - - [22/Nov/1998:23:33:43 -0800] "PUT /foobar.html HTTP/1.0" 404 205 207.211.163.141 - - [22/Nov/1998:23:34:14 -0800] "PUT /foobar HTTP/1.0" 200 682 207.211.163.141 - - [22/Nov/1998:23:34:44 -0800] "GUK /foo.html HTTP/1.0" 404 202 207.211.163.141 - - [22/Nov/1998:23:34:59 -0800] "GUK /foo HTTP/1.0" 501 197 207.211.163.141 - - [22/Nov/1998:23:37:03 -0800] "PUT /barfoo.html HTTP/1.0" 404 205 ----------------- ---error.log --- [Sun Nov 22 23:34:59 1998] [error] [client 207.211.163.141] Invalid method in request GUK /foo HTTP/1.0 ---------------