Req #68875 [Sus->Fbk]: LINK http method not implemented

From: Date: Tue, 05 Jul 2016 18:34:26 +0000
Subject: Req #68875 [Sus->Fbk]: LINK http method not implemented
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202080@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68875&edit=1

 ID:                 68875
 Updated by:         cmb@php.net
 Reported by:        pedroresende at mail dot resende dot biz
 Summary:            LINK http method not implemented
-Status:             Suspended
+Status:             Feedback
 Type:               Feature/Change Request
 Package:            Built-in web server
 Operating System:   Ubuntu 14.10
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

> LINK/UNLINK is a draft […]

The latest respective draft which I could find is "HTTP Link and
Unlink Methods|draft-snell-link-method-12"[1], which has been
expired on March 24, 2016. Can you point to a more recent RFC?

> The usage drives everything & BTW it's just a debate about an
> HTTP verb, nothing more!

If it is nothing more, we should consider to accept *all*
potentially allowable verbs. That would also simplify the parser.

[1] <https://tools.ietf.org/html/draft-snell-link-method-12>


Previous Comments:
------------------------------------------------------------------------
[2016-03-26 14:54:42] sebastien dot houze at gmail dot com

Guys, don't we need to move forward?

LINK/UNLINK is a draft but I can attest that many people already use it. The usage drives everything
& BTW it's just a debate about an HTTP verb, nothing more!

In fact, php is using nodejs http-parser https://github.com/nodejs/http-parser code.

And guess what... nodejs http-parser code has adopted LINK/UNLINK support since few months!
https://github.com/nodejs/http-parser/commit/e557b62744e4f487a303b25b27c56947d7a8bacc

Maybe it's time to backport that in php source?

I can make the pull request and everything needed to have this pull request merged. Furthermore it
could be backported to every actively supported php version.

------------------------------------------------------------------------
[2015-09-05 11:54:54] cmb@php.net

> I don't think it is a good idea to introduce verbs that may not
> ever be accepted or widely used into the test server.

I fully agree. Therefore I'm suspending this request.

------------------------------------------------------------------------
[2015-01-21 13:05:13] leigh@php.net

The LINK and UNLINK methods are draft status, subject to change and/or not being accepted as a
specification at all.

https://tools.ietf.org/html/draft-snell-link-method-11

I don't think it is a good idea to introduce verbs that may not ever be accepted or widely used
into the test server.

------------------------------------------------------------------------
[2015-01-21 11:39:51] pedroresende at mail dot resende dot biz

Description:
------------
Apparently the php built-in web server hasn't LINK method implemented

Test script:
---------------
php -S localhost:8001

curl -i -X LINK http://localhost:8001/

Actual result:
--------------
HTTP/1.1 501 Not Implemented
Host: localhost:8001
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=68875&edit=1


Thread (8 messages)

« previous php.bugs (#202080) next »