[users@httpd] Bug or feature?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I would like to ask the list members if following are
bug or feature of apache.

Use following sample script,
Apache version: ANY  (1.3, 2.0 and 2.2)

#!/bin/sh
cat <<EOT
Status: 200 OK
Last-Modified: Tue, 15 Feb 2005 15:00:00 GMT
Content-Type: text/html

Hello world
EOT


1st access, Apache returns Status Code 200 with BODY.
(And 200 in accesslog).

2nd access, Apache returns Status Code 200 without BODY.
(And 304 in accesslog).

3rd access, Apache returns Status Code 200 with BODY.
(And 200 in accesslog).

4th access, Apache returns Status Code 200 without BODY.
(And 304 in accesslog).

On 2nd and 4th access, browser failed to display, since the packet has
status code 200 without BODY.

This seemed to me, Status code mismatch between inside packet and accesslog
happened because of the BAD sample CGI script. But from the other point of view,
this symptom happend because apache allow the CGI to OVERWRITE the status code
in the packet.

My question is,
"Apache allow the CGI to overwrite the status code inside of the packet"
Is this what apache developer expected? or BAG?

FYI, this is the same question that has asked long times ago.
But no reply, so far.
http://archive.apache.org/gnats/5640
http://issues.apache.org/bugzilla/show_bug.cgi?id=37166

Regards,
Masanari Iida

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux