php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5885 mod_php sends response body for HEAD Requests
Submitted: 2000-08-01 03:42 UTC Modified: 2000-08-03 00:46 UTC
From: php-bugs at bjoernsworld dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Latest CVS (01/08/2000) OS: Winnt 4.0 SP 4
Private report: No CVE-ID: None
 [2000-08-01 03:42 UTC] php-bugs at bjoernsworld dot de
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-03 00:46 UTC] rasmus@php.net
Fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC