cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP connection to unix socket

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 12 Apr 2008 00:03:03 +0200 (CEST)

On Fri, 11 Apr 2008, Dan Fandrich wrote:

> A straightforward approach would be to URL encode the socket name and use
> that as the host name, e.g. http://%2Ftmp%2Fserver/resource would use the
> UNIX socket /tmp/server. This should be unambiguous as / is illegal in a
> host name. It looks ugly though, and would force a %2F to be added to all
> socket names even when it wouldn't otherwise be needed, e.g.
> http://.%2Fserver/resource I haven't check to see if this would play well
> with IDN and whether adding a .%2F is allowed on all platforms.

I'm also curious if these servers do vhosting on the domain sockets as well,
as then we need the "host name" for the sockets too for a proper Host:
header!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-04-12