Bug #73637 [Opn->Dup]: Server http method implemented

From: Date: Fri, 02 Dec 2016 00:53:58 +0000
Subject: Bug #73637 [Opn->Dup]: Server http method implemented
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205728@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73637&edit=1 ID: 73637 Updated by: requinix@php.net Reported by: r dot mbiama at angosso dot net Summary: Server http method implemented -Status: Open +Status: Duplicate Type: Bug Package: Built-in web server Operating System: Vhosts PHP Version: 7.0.13 Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2016-12-01 19:09:26] 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>% ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73637&edit=1

« previous php.bugs (#205728) next »