I want to get the same string standard outputted by curl when I type something like:
curl --unix-socket file.sock http://path/to/rest/request
In my Java code. I figured out I need to use AFUNIXSocket, but I can set just the socket file on connection, so I suppose I have to manage my http connection manually.
Is there a way to make it easier? How do I start an http connection through the socket I create?