php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68899 Support HTTP over Unix sockets via http://localhost:[/tmp/socket]/foo
Submitted: 2015-01-24 13:20 UTC Modified: 2015-01-24 13:24 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bugs at stalag99 dot net Assigned:
Status: Open Package: URL related
PHP Version: Irrelevant OS: Unix
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugs at stalag99 dot net
New email:
PHP Version: OS:

 

 [2015-01-24 13:20 UTC] bugs at stalag99 dot net
Description:
------------
Support using Unix sockets to access HTTP servers.  Lighttpd and Nginx already support these, but there is no consensus about how URLs are to be formed.

Taking a hint from IETF RFC 2732, Webkit should make the HTTP request over unix sockets should the hostname of the URL be "localhost" and the port be the socket path encapsulated by square brackets. (ie [ ])

Further info at https://plus.google.com/110699958808389605834/posts/DyoJ6W6ufET


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-24 13:22 UTC] bugs at stalag99 dot net
-Summary: HTTP over Unix sockets via http://localhost:[/tmp/socket]/foo convention. +Summary: bugs@stalag99.net
 [2015-01-24 13:22 UTC] bugs at stalag99 dot net
Sorry, I've been sending bug reports to everyone.  PHP should be recognizing these requests, not Webkit.

And yes, I have an interest in this because I wanted to have localized (not public) services such as a Perl-based Markdown pharser and HTML Sanitizer on a unix socket via HTTP.  I'm using Lighttpd as a server.
 [2015-01-24 13:24 UTC] bugs at stalag99 dot net
-Summary: bugs@stalag99.net +Summary: Support HTTP over Unix sockets via http://localhost:[/tmp/socket]/foo
 [2015-01-24 13:24 UTC] bugs at stalag99 dot net
Recorrecting summary due to LastPass overwriting.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 18:01:27 2019 UTC