Not sure for the equivalent in C, but you can pass a custom SoupAddress
to SoupMessage based on a UNIX domain socket:
var address = new GLib.UnixSocketAddress ("/path/to/socket");
void* unix_sockaddr;
size_t unix_sockaddr_len;
address.to_native (unix_sockaddr, out unix_sockaddr_len);
var session = new Soup.Session ("local-address", unix_sockaddr);
Did not test it, but it should work.
> ______________________________
Le samedi 20 août 2016 à 09:37 +0800, Robin Lee a écrit :
> Hi all,
>
> Any way to send HTTP request through a UNIX domain socket, like
> the CURLOPT_UNIX_SOCKET_PATH(3) option in libcurl>=7.40?
>
> Regards,
> robin
_________________
> libsoup-list mailing list
> libsoup-list gnome org
> https://mail.gnome.org/mailman/listinfo/libsoup-list
--
Guillaume Poirier-Morency <guillaumepoiriermorency@gmail.com >
Étudiant au baccalauréat en Informatique à l'Université de Montréal
Chercheur boursier à l'IRIC
Mon blog: https://arteymix.github.io/
Clé PGP: B1AD6EA5
_______________________________________________
libsoup-list mailing list
libsoup-list gnome org
https://mail.gnome.org/mailman/listinfo/libsoup-list