title: Copy cookies between request and response
body: <pre><code>using (HttpWebResponse httpWebResponse = (HttpWebResponse)templateRequest.GetResponse())
  {
      using (StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream()))
      {
          header = httpWebResponse.Cookies;
  </code></pre>
  
  <p>That is my response's cookies but here is my request</p>
  
  <pre><code>HttpWebRequest templateRequest = base.GetTemplateRequest("https://apps.runescape.com/runemetrics/profile/profile?activities=20");
  
  templateRequest.CookieContainer = ???????????
  </code></pre>
  
  <p>Now how do I take my cookies from the response to the request?</p>
  
  <p>I've tried</p>
  
  <pre><code>CookieContainer cookies = new CookieContainer();
  
  foreach(Cookie cookie in header)
  {
      cookies.Add(cookie);
  }
  templateRequest.CookieContainer = cookies;
  </code></pre>
  
  <p>but it didn't work :(</p>