title: HTTP Basic Auth and Proxy for selenium-webdriver (ruby bindings)
body: <p>I'm attempting to use the selenium-webdriver [ruby bindings][1] to access an internal web-site that requires a proxy to be configured, and HTTP Basic Auth. </p>
  
  <p>I currently have:</p>
  
  <pre><code>  require "selenium-webdriver"
    driver = Selenium::WebDriver.for :firefox
    driver.navigate.to "http://my-internal-site.com"
  </code></pre>
  
  <p>But this fails due to both the proxy and http auth issues. If I add my username and password to the URL (i.e. <code>http://username:password@site.com</code>) I can do basic authentication on another site that doesn't require the proxy, but this doesn't seem like an ideal solution.</p>
  
  <p>Any suggestions?</p>