PHP 4.0 Bug #3961: HEAD / HTTP/1.0 && /usr/local/bin/php -v do nothing

From: Date: Wed, 29 Mar 2000 18:53:14 +0000
Subject: PHP 4.0 Bug #3961: HEAD / HTTP/1.0 && /usr/local/bin/php -v do nothing
Groups: php.dev 
Request: Send a blank email to php-dev+get-17355@lists.php.net to get a copy of this message
From: vince@mha.ca Operating system: Linux 2.2.14 (RedHat 6.x) PHP version: 4.0 Release Candidate 1 PHP Bug Type: Other Bug description: HEAD / HTTP/1.0 && /usr/local/bin/php -v do nothing this breaks my monitoring software which is why I noticed it (my software does a "HEAD / HTTP/1.0" to verify the web site is up) ------------------ [vince@cat ~]$ telnet cat.mha.ca 80 Trying 209.153.196.184... Connected to cat.mha.ca. Escape character is '^]'. HEAD / HTTP/1.0 Connection closed by foreign host. [vince@cat ~]$ ------------------ [vince@cat ~]$ /usr/local/bin/php -v [vince@cat ~]$ ------------------ This is not good but it does give the correct headers with GET ------------------ [vince@cat ~]$ telnet cat.mha.ca 80 Trying 209.153.196.184... Connected to cat.mha.ca. Escape character is '^]'. GET / HTTP/1.0 HTTP/1.1 200 OK Date: Wed, 29 Mar 2000 18:52:43 GMT Server: Apache/1.3.12 (Unix) PHP/4.0RC1 X-Powered-By: PHP/4.0RC1 Connection: close Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD></HEAD> <!-- This is a comment --> <BODY></BODY></HTML> Connection closed by foreign host. [vince@cat ~]$

« previous php.dev (#17355) next »