title: How do manually set the host header when using SimpleBrowser webdriver with Selenium?
body: <p>I am using Selenium and <a href="https://github.com/Teun/SimpleBrowser.WebDriver" rel="nofollow">SimpleBrowser</a> to do some headless browser testing of my website.  I want to manually set the 'host' entry in all the requests.  This is so I can have an instance of IIS set up with bindings to a domain name that does not actually exist in dns.</p>
  
  <p>I want to do exactly this (which works):</p>
  
  <pre><code>var req = (HttpWebRequest)WebRequest.Create("http://204.144.122.223");
  req.Host = "www.asldkfhjawoeij.com";
  Console.WriteLine(req.GetResponse().GetResponseStream().ReadToEnd());
  </code></pre>
  
  <p>But using Selenium and SimpleBrowser.  Where in the code below do I override the host header, if I even can?</p>
  
  <pre><code>[Test]
  [TestCase("https://204.144.122.223.com/")]
  public void CanGetHomepageAndVariousOtherUrls(string server)
  {
    using (var browser = new SimpleBrowserDriver())
    {
      browser.Url = server;
      browser.FindElement(By.Id("home"));
    }
  }
  </code></pre>