title: Stop url encoding cookie
body: <p>Consider the following ASP.net web api controller method. For demo purpose it returns a cookie. the session-id cookie has a base64 encoded data. When I add the cookie to the response with <code>response.Headers.AddCookies(new CookieHeaderValue[] { cookie });</code> it url encodes the data (Documentation is <a href="http://msdn.microsoft.com/en-us/library/system.net.http.httpresponseheadersextensions.addcookies%28v=vs.118%29.aspx" rel="nofollow">here</a>). Is there any way I can attach the cookie without encoding it?</p>
  
  <pre><code>  public HttpResponseMessage LogMeIn()
    {
       var response = Request.CreateResponse&lt;Models.UserAuthResponse&gt;(new Models.UserAuthResponse());
  
       var cookie = new CookieHeaderValue("session-id", "K2QRkQaSnwCBpRrAgI1K3w9kTgbArc+xdIJI64e2hz0=");
       cookie.Expires = DateTimeOffset.Now.AddDays(1);
       cookie.Domain = ".example.com";
       cookie.Path = "/";
       response.Headers.AddCookies(new CookieHeaderValue[] { cookie });
       return response;
    }
  </code></pre>