php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73637 Server http method implemented
Submitted: 2016-12-01 19:09 UTC Modified: 2016-12-02 00:53 UTC
From: r dot mbiama at angosso dot net Assigned:
Status: Duplicate Package: Built-in web server
PHP Version: 7.0.13 OS: Vhosts
Private report: No CVE-ID: None
 [2016-12-01 19:09 UTC] r dot mbiama at angosso dot net
Description:
------------
Apparently the php built-in web server has setup method implemented

Test script:
---------------
php -S exemple.net:9080

curl -i -X Vhosts http://exemple.net:9080/examples

Actual result:
--------------
HTTP/1.1 501 Not Implemented
Host: exemple.net:9080/examples
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 495

<!doctype html><html><head><title>501 Not Implemented</title><style>
body { background-color: #fcfcfc; color: #333333; margin: 0; padding:0; }
h1 { font-size: 1.5em; font-weight: normal; background-color: #9999cc; min-height:2em; line-height:2em; border-bottom: 1px inset black; margin: 0; }
h1, p { padding-left: 10px; }
code.url { background-color: #eeeeee; font-family:monospace; padding:0 2px;}
</style>
</head><body><h1>Not Implemented</h1><p>Request method not supported.</p></body></html>%       

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-02 00:53 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 [2016-12-02 00:53 UTC] requinix@php.net
The built-in web server only accepts a specific list of HTTP verbs. See request #72619 for allowing any method.

https://github.com/php/php-src/blob/PHP-7.0.13/sapi/cli/php_http_parser.c#L78
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 19:01:29 2024 UTC