title: Swift - How to set cookie in NSMutableURLRequest
body: <p>I'm trying to set cookie in my HTTP request
  and I thought that below code would work:</p>
  
  <pre><code>let request  = NSMutableURLRequest(URL: url)
  request.HTTPMethod = "GET"
  request.setValue("key=value;", forHTTPHeaderField: "Cookie")
  </code></pre>
  
  <p>but this code is not working.
  does anyone have idea how to set it?</p>