Python HTTPConnection bound to network interface
The web servers I use at work are multi homed with the default route being the internal management network. We came across an issue where we wanted to make a XMLHTTPRequest for a data feed from another company into our web app. We all know due to cross-site scripting attacks this is no longer possible so we had to write a little proxy script to pull the data and serve it from our own site. The standard python httplib doesn’t have the ability to bind to a specific interface so I have done a little sub-classing and now have a HTTPConnection which allows me to bind to a specific interface. Hope this helps someone as from my searching it seems to be a common request. You will need to change the IP address to match your setup :-)