How to send http request through specific network interface
devappkr opened this issue · 2 comments
devappkr commented
I have two network interfaces (wifi and ethernet) both with internet access. Let's say my interfaces are eth (ethernet) and wlp2 (wifi). I need specific requests to go through eth interface and others through wpl2.
ex) request.post(url="http://myapi.com/log", iface="wlp2")
Araq commented
I don't know, use Nim's stdlib instead of this "curl" wrapper.
dom96 commented
The question to ask yourself is: how would you do it in C? If you don't know then Google will answer that for you. Then it's a "simple" case of porting the answer to Nim.