title: Setting the User-Agent header for a WebClient request
body: <p>What is the proper way of setting the User-Agent header for a WebClient request for Windows Phone 7?
  I found 2 options, but not sure which one is the correct one. Considering a WebClient object:</p>
  
  <pre><code>WebClient client = new WebClient();
  </code></pre>
  
  <p>I saw 2 options:</p>
  
  <ol>
  <li><p>set the User-Agent using: </p>
  
  <pre><code>client.Headers["User-Agent"] = "myUserAgentString";
  </code></pre></li>
  <li><p>set the User-Agent using the WebHeaderCollection:</p>
  
  <pre><code>WebHeaderCollection headers = new WebHeaderCollection();
  headers[HttpRequestHeader.UserAgent] = "userAgentString";
  client.Headers = headers;
  </code></pre></li>
  </ol>
  
  <p>Can you please advise which of the 2 methods above is the proper one?</p>