title: Send http request through specific network interface
body: <p>I have two network interfaces (wifi and ethernet) both with internet access. Let's say my interfaces are <code>eth</code> (ethernet) and <code>wlp2</code> (wifi). I need specific requests to go through <code>eth</code> interface and others through <code>wpl2</code>.</p>
  
  <p>Something like:</p>
  
  <pre><code>// Through "eth"
  request.post(url="http://myapi.com/store_ip", iface="eth")
  // Through "wlp2" 
  request.post(url="http://myapi.com/log", iface="wlp2")
  </code></pre>
  
  <p>I'm using <code>requests</code>, but I can use <code>pycurl</code> or <code>urllib</code> if there isn't any way to do it with <code>requests</code>.</p>
  
  <p><a href="https://stackoverflow.com/questions/26335544/how-to-specify-source-interface-in-python-requests-module">How to specify source interface in python requests module?</a> refers to <a href="https://stackoverflow.com/questions/12585317/requests-bind-to-an-ip">Requests, bind to an ip</a> and it doesn't work.</p>