#32218 [Opn->Fbk]: HTTP status 200 returned on HTTP CONNECT
| From: | vrana@php.net | Date: | Tue, 08 Mar 2005 08:44:16 +0000 |
| Subject: | #32218 [Opn->Fbk]: HTTP status 200 returned on HTTP CONNECT | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969366892@lists.php.net to get a copy of this message | ||
ID: 32218
Updated by: vrana@php.net
Reported By: mcihar at suse dot cz
-Status: Open
+Status: Feedback
Bug Type: Documentation problem
PHP Version: 5.0.3
New Comment:
What's the problem here? Your PHP script can handle any type of request
method and you can check for the method in variable
$_SERVER["REQUEST_METHOD"] which is documented at
http://www.php.net/manual/en/reserved.variables.php
. You can send the
status code yourself with header().
Previous Comments:
------------------------------------------------------------------------
[2005-03-07 20:08:44] sniper@php.net
Let's document it.
------------------------------------------------------------------------
[2005-03-07 13:53:42] mcihar at suse dot cz
Description:
------------
This is basically same as bug #19113, but I didn't find way to add
comment there and I do no thing it is bogus.
Problem is that mod_php (and mod_perl as well) don't care about request
type at all, and handle all same way. If this is really intended
behaviour, it should be documented.
I feel it is a bug, solution migth be to add method check to
php_handler. It might look like:
if (r->method_number != M_GET && r->method_number != M_POST) {
return DECLINED;
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32218&edit=1