Bug #69655 [Opn->Ana]: php -S changes MKCALENDAR request method

From: Date: Mon, 18 May 2015 21:06:18 +0000
Subject: Bug #69655 [Opn->Ana]: php -S changes MKCALENDAR request method
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192740@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69655&edit=1

 ID:                 69655
 Updated by:         cmb@php.net
 Reported by:        markus at unterwaditzer dot net
 Summary:            php -S changes MKCALENDAR request method
-Status:             Open
+Status:             Analyzed
 Type:               Bug
 Package:            Built-in web server
 Operating System:   Linux
 PHP Version:        5.6.9
 Block user comment: N
 Private report:     N

 New Comment:

Actually, MKCALENDAR is not yet supported by the CLI server. When
I do the respective curl request, I get "curl: (52) Empty reply
from server" (PHP 5.6.8 and current master on Windows, curl
running on Cygwin).


Previous Comments:
------------------------------------------------------------------------
[2015-05-18 15:13:51] markus at unterwaditzer dot net

Description:
------------
PHP's built-in web server changes the request method MKCALENDAR to MKCOL.

Serve the given test script with:

    php -S localhost:8080 ./foobar.php

and do a test request with e.g.:

    curl -X MKCALENDAR http://localhost:8080/

Test script:
---------------
<?php echo $_SERVER['REQUEST_METHOD']; ?>

Expected result:
----------------
The response body should be "MKCALENDAR".

Actual result:
--------------
The response body is "MKCOL".


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=69655&edit=1


Thread (7 messages)

« previous php.bugs (#192740) next »