Re: [PHP-DEV] PHP 4.0 Bug #5885: mod_php sends response body for HEAD Requests From: Rasmus Lerdorf (rasmus <email protected>)
Date: 07/31/00

Are you actually running mod_php? mod_php on UNIX definitely does not do
this.

-Rasmus

On 1 Aug 2000 php-bugs <email protected> wrote:

> From: php-bugs <email protected>
> 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)
>
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>