title: How to modify "Host" parameter in HttpWebRequest for C# Compact Framework?
body: <p>I am trying to change the value of "Host" parameters in the <a href="http://msdn.microsoft.com/en-us/library/8y7x3zz2.aspx" rel="nofollow">HttpWebRequest</a> headers but I am getting error below:</p>
  
  <p><strong>"This header must be modified with the appropriate property. at System.Net.WebHeaderCollection.ThrowOnRestrictedHeader(String headerName)"</strong></p>
  
  <p>I am trying to use the following code: </p>
  
  <pre><code>HttpWebRequest hbWebRequest = (HttpWebRequest)System.Net.HttpWebRequest.Create(WebService);
  hbWebRequest.Method = "POST";
  hbWebRequest.Headers["Host"] = WebURL;
  </code></pre>