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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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 Sep 23 17:01:26 2019 UTC