www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject Re: general/2209: CGI script with last-modified gives empty 200 response
Date Mon, 21 Jun 1999 21:20:01 GMT
The following reply was made to PR general/2209; it has been noted by GNATS.

From: Rodent of Unusual Size <Ken.Coar@Golux.Com>
To: Apache bug database <apbugs@Apache.Org>
Cc:  Subject: Re: general/2209: CGI script with last-modified gives empty 200 response
Date: Mon, 21 Jun 1999 17:10:59 -0400

 Darrell Kindred wrote:
 > 
 >    GET /cgi-bin/testscript HTTP/1.0
 >    If-Modified-Since: Sun, 04 Jun 1995 17:36:33 GMT
 > 
 >  Apache will respond with
 > 
 >    HTTP/1.1 200 OK
 >    Date: Sun, 20 Jun 1999 01:34:46 GMT
 >    Server: Apache/1.3.6 (Unix)
 >    Connection: close
 > 
 >  and no further data.  The correct behavior would be to give an
 >  "HTTP/1.1 304 Not Modified" header.
 > 
 >  #!/usr/bin/perl
 >  print <<EOF;
 >  Status: 200 OK
 >  Last-Modified: Sun, 04 Jun 1995 17:36:33 GMT
 >  Content-type: text/plain
 > 
 >  testing 1 2 3
 >  EOF
 
 What does it return if your script *doesn't* have a Status field
 in its response header?

Mime
View raw message