Bug #76204 [Opn->Dup]: CONNECT method doesn't work
| From: | requinix@php.net | Date: | Tue, 10 Apr 2018 16:05:07 +0000 |
| Subject: | Bug #76204 [Opn->Dup]: CONNECT method doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214682@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76204&edit=1
ID: 76204
Updated by: requinix@php.net
Reported by: sid dot pasquale at gmail dot com
Summary: CONNECT method doesn't work
-Status: Open
+Status: Duplicate
Type: Bug
Package: Built-in web server
Operating System: linux
PHP Version: 7.0.29
Block user comment: N
Private report: N
New Comment:
CONNECT is not supported because the built-in server is a simple server for simple development uses.
See request #72619.
Previous Comments:
------------------------------------------------------------------------
[2018-04-10 15:59:15] sid dot pasquale at gmail dot com
Description:
------------
PHP HTTP built-in server doesn't support CONNECT HTTP method
Test script:
---------------
Starting built-in server:
sid@zen:~$ php -S 127.0.0.1:8080
Test with some working HTTP methods:
sid@zen:~$ echo -en "GET / HTTP/1.1\r\n\r\n" | nc localhost 8080 | head -n 1
HTTP/1.1 404 Not Found
sid@zen:~$ echo -en "FOO / HTTP/1.1\r\n\r\n" | nc localhost 8080 | head -n 1
HTTP/1.1 501 Not Implemented
Not working:
sid@zen:~$ echo -en "CONNECT www.example.com:443 HTTP/1.1\r\n\r\n" | nc localhost 8080 |
head -n 1
Actual result:
--------------
[Tue Apr 10 17:51:27 2018] 127.0.0.1:44676 Invalid request (Malformed HTTP request)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76204&edit=1