Req #51918 [Opn]: Phar::webPhar() does not handle requests sent through PUT and DELETE method
| From: | max dot romanovsky at gmail dot com | Date: | Mon, 29 Aug 2011 20:35:34 +0000 |
| Subject: | Req #51918 [Opn]: Phar::webPhar() does not handle requests sent through PUT and DELETE method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163115@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=51918&edit=1
ID: 51918
User updated by: max dot romanovsky at gmail dot com
Reported by: max dot romanovsky at gmail dot com
Summary: Phar::webPhar() does not handle requests sent
through PUT and DELETE method
Status: Open
Type: Feature/Change Request
Package: PHAR related
Operating System: FreeBSD
PHP Version: 5.3.2
Block user comment: N
Private report: N
New Comment:
But we can't build RESTful application that will be packaged in Phar and started
using Phar::webPhar().
Or there is some other intention to handle only GET and POST methods?
Previous Comments:
------------------------------------------------------------------------
[2011-08-29 19:06:53] bjori@php.net
It seems quite intentional. It only supports GET and POST, not PUT, DELETE, HEAD,
...
------------------------------------------------------------------------
[2010-05-26 10:40:16] max dot romanovsky at gmail dot com
Description:
------------
Phar::webPhar() does not handle requests sent through PUT and DELETE request method.
Test script:
---------------
PUT /REST/foo HTTP/1.1
host: example.com
Content-Length: 2
12
HTTP/1.1 200 OK
Server: nginx/0.8.36
Date: Tue, 25 May 2010 14:01:42 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.2
0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=51918&edit=1