title: Webclient and Language
body: <p>I want to scrape google suggest in german language:</p>
  
  <pre><code>string url = "http://google.de/complete/search?output=toolbar&amp;q=" + txtResults.Lines[i].Replace(" ", "%20%");
  WebClient client = new WebClient();
  client.Headers.Add("User-Agent", "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0");
  client.Headers.Add("Accept-Encoding:", "gzip, deflate");
  client.Headers.Add("Connection:", "keep-alive");
  doc.Load(client.OpenRead(url), System.Text.Encoding.UTF8, true);
  </code></pre>
  
  <p>But i always get international results whereas in the browser i get the german results by the given .de url.
  So i added the header:</p>
  
  <pre><code>client.Headers.Add("Accept-Language:", "de-de,de;q=0.8,en-us;q=0.5,en;q=0.3");
  </code></pre>
  
  <p>But now i get the error:
   <em>Specified value has invalid HTTP Header characters</em></p>
  
  <p>I also tried to set the language of my application by</p>
  
  <pre><code>Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
  </code></pre>
  
  <p>but this doens't help either.</p>