title: How can I override the "Host" header in the request when using Apache commons HttpClient
body: <p>I am using Jakarta Commons HttpClient 3.1 writing a load test tool that needs to target different servers and pretend like it targeted the correct virtual host in the HTTP server. For that I need to be able to set the "Host" HTTP header in the request to a different host name then the actual host name that I'm connecting to.</p>
  
  <p>It seemed pretty obvious that I should use <code>Method.setRequestHeader("Host","fakehostname")</code>, but HttpClient just ignores this and always sends the real host name I'm connecting to in the "Host" header (I've enabled debug logging for "httpclient.wire" and I can it does this specifically).</p>
  
  <p>How can I override the header so that HttpClient takes heed?</p>