>Number: 3437 >Category: general >Synopsis: Interprets method incorrectly. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sat Nov 21 04:50:00 PST 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.3 >Environment: Linux 2.0.35 i586, gcc version 2.8.1 >Description: The method is not being interpreted correctly. When I ask for 'PUT' /foo.html http/1.0' it seems to ignore the method by always using 'GET'. However when the filename doesn't contain a period, it is used correctly. For example, I am able to retreive a document using 'GEE /index.html http/1.0'. When I try a 'PUT /foo http/1.0' it creates the file 'foo'. >How-To-Repeat: 23 veger />telnet veger.ppp1.com 80 Trying 207.211.163.141... Connected to veger. Escape character is '^]'. PUT /foo.html http/1.0
HTTP/1.1 404 Not Found Date: Sat, 21 Nov 1998 12:32:23 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. 24 veger />telnet veger.ppp1.com 80 Trying 207.211.163.141... Connected to veger. Escape character is '^]'. PUT /foo http/1.0 HTTP/1.1 200 Request fullfilled, but you should provide a date in your request... Date: Sat, 21 Nov 1998 12:32:37 GMT Server: Apache/1.3.3 (Unix) PHP/3.0.5 Connection: close Content-Type: text/html Doh! The server had a problem"Connection closed by foreign host. 25 veger />telnet veger.ppp1.com 80 Trying 207.211.163.141... Connected to veger. Escape character is '^]'. GEE /foo.html http/1.0 HTTP/1.1 404 Not Found Date: Sat, 21 Nov 1998 12:32:58 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. >Fix: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]
