Re: feature request: support specifying Unix socket with systemd directive OpenFile=

Petr Pisar via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
V Tue, Jun 20, 2023 at 03:44:10PM -0400, Rich Gray via curl-users napsal(a):
> Instead of adding a -fd variant to each command, maybe a more generic 
> approach would be to have a syntax that indicates a filename is really an 
> fd.  Something like an ampersand followed by the digits of fd number.  (An 
> ampersand ('&') would require suitable command line escaping/quoting.)  This 
> could be used with any command that recognizes the alternative syntax.  A 
> favorite of mine would be -K, --config with an fd to hide command line 
> options when a program is driving curl.
> 
The syntax could be a URI. E.g. to use a fifth descriptor for reading
a configuration:

    --config fd://5

The only drawback is that it is an ill-formed, yet still accepted file
system path on many unices. E.g. Linux inteprets it as "./fd:/5". There would
be a change in behaviour for sloppy users who concatantes paths without
avoiding double slashes.

On the other hand, one could then write

    --config https://my.remote/file

to retrive the configuration with any curl-supported protocol.

-- Petr

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE4/QvzhVoMKgDWObpT9GuwzZa978FAmSTKb0ACgkQT9GuwzZa
979Mng/+NeruCOta90fS6vk/Ynk6UfKwhqBnFFB9eVdqK4iziJggQ4rcCbuBN3Di
mdAQ1w2WFD1yvpratdZWVC8iswUESyEYnAPWYPf6slp6Bv2z3BWZWdawydHo4x1H
IQHb02+ykMkBw8CR8+Dr3Yy81emvhzNF4Hk8B8j2ca2q+zK9mwB7VHtuTG8Yn/j4
s9k153PJCSVhn9t7yG+ZFYkzxdRgSmW7zAd9MwcCggk9qUTxdQK4hLOCqYvHO3g4
IDNExS/hXrUOWLpj5O+Xdr7fsB1eXKsffU8mIdpdcjj6vS/JueU+Nc7hlKuM7WRI
5D4pGqlbAunSCZXIqNVYSmGn+LQ7kY8iAGFecJWnXCW2mpd15gmdx88yJqv+icK3
Afz53emp2jq/u70K2BNa9BV9X4SlEm+kyY2TWVB65kUArTuKwFVmk7wW81upJlbX
iDANU3wtEOU5GP55tBBi7PwLTF/NIhyAPakc4vSBKN7wtV1qIs57SNH+QgSgglc6
Gjks5JiVRAbg7ydiI4/d66ZOaJV6gXodwWYE4bGX+jLvxf0JJzHSOB2gOIV7o5+q
hfqupb8PX9CDuOxJpXGIpbYmr7szXpibiDHQfZ/YsM36D4VrcZzHjUUcYXAjfZ/9
bUcujKmlAE6VZeeR2gs9I43EPQXSuosK9tA9OuBg4PS0btq2/Co=
=PRPU
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.