Re: PHP 4.0 Bug #5885: mod_php sends response body for HEAD Requests
| From: | Rasmus Lerdorf | Date: | Tue, 01 Aug 2000 01:49:33 +0000 |
| Subject: | Re: PHP 4.0 Bug #5885: mod_php sends response body for HEAD Requests | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-27155@lists.php.net to get a copy of this message | ||
Are you actually running mod_php? mod_php on UNIX definitely does not do
this.
-Rasmus
On 1 Aug 2000 php-bugs@bjoernsworld.de wrote:
> From: php-bugs@bjoernsworld.de
> Operating system: Winnt 4.0 SP 4
> PHP version: 4.0 Latest CVS (01/08/2000)
> PHP Bug Type: Misbehaving function
> Bug description: mod_php sends response body for HEAD Requests
>
> 1.php:
> <?php
> print "hi";
> ?>
>
> .htaccess:
> ErrorDocument 406 /1.php
>
> HTTP Request and Response:
> D:\>netc bw 80
> HEAD /index HTTP/1.1
> Host: bw
> Accept-Language: en
>
> HTTP/1.1 200 OK
> Date: Tue, 01 Aug 2000 01:36:34 GMT
> Server: Apache/1.3.12 (Win32)
> Alternates: {"index.html" 1 {type text/html} {charset iso-8859-1} {language de}
> {length 4698}}
> Vary: negotiate
> TCN: list
> X-Powered-By: PHP/4.0.2-dev
> Content-Type: text/html
> Content-Language: de
>
> hi
> [...]
>
> RFC 2616 forbids response bodys for HEAD requests.
>
> mod_php 4.0.2-dev (build last week)
>
>
>