title: Managing cookies in a WPF WebBrowser control?
body: <p>Is there a way to read/write the cookies that a WebBrowser control uses?  </p>
  
  <p>I am doing something like this...  </p>
  
  <pre><code>string resultHtml;
  HttpWebRequest request = CreateMyHttpWebRequest(); // fills http headers and stuff
  HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  using (StreamReader sr = new StreamReader(response.GetResponseStream()))
  {
      resultHtml = sr.ReadToEnd();
  }
  WebBrowser browser = new WebBrowser();
  browser.CookieContainer = request.CookieContainer; // i wish i could do this :(
  browser.NavigateToString(resultHtml);  
  </code></pre>