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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
17 - 3 = ?
Subscribe to this entry?

 
 [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: Tue Sep 17 16:01:27 2019 UTC