See http://stackoverflow.com/questions/34846014/using-selenium-remotewebdriver-behind-corporate-proxy for details.