Bug #76204 [NEW]: CONNECT method doesn't work
| From: | sid dot pasquale at gmail dot com | Date: | Tue, 10 Apr 2018 15:59:16 +0000 |
| Subject: | Bug #76204 [NEW]: CONNECT method doesn't work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-214681@lists.php.net to get a copy of this message | ||
From: sid dot pasquale at gmail dot com
Operating system: linux
PHP version: 7.0.29
Package: Built-in web server
Bug Type: Bug
Bug description:CONNECT method doesn't work
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 bug report at https://bugs.php.net/bug.php?id=76204&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76204&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76204&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76204&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76204&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76204&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76204&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76204&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76204&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76204&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76204&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76204&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76204&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76204&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76204&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76204&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76204&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76204&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76204&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76204&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76204&r=mysqlcfg