title: How to set the http referer header with Selenium C# PhantomJSDriver?
body: <p>How can I set the http referer header when using the Selenium C# PhantomJSDriver in a C# console application?</p>
  
  <p>I am using the PhantomJSDriver with a Proxy that I do not control.</p>
  
  <pre><code>PhantomJSDriverService service = PhantomJSDriverService.CreateDefaultService();
  service.AddArgument("--proxy=123.456.78.910:80");
  service.AddArgument("--proxy-auth=myproxyuid:myproxypwd");
  IWebDriver driver = new PhantomJSDriver(service);
  driver.Navigate().GoToUrl("http://www.testsite.com/product/123/");
  </code></pre>
  
  <p>However the web application being tested performs validation on the <a href="http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z14" rel="nofollow">HTTP Referer</a> value in the requests.</p>
  
  <p><strong>What method can I use to inject the HTTP Referer in the PhantomJSDriver requests?</strong></p>