title: Preserving HTTPOnly cookies on Windows Phone
body: <p>I have an app that sends a username and password to an API via HTTPS. The API returns HTTPOnly cookies.</p>
  
  <p>This means that the cookies are "invisible" to the code, but still exist and will be sent to the server in subsequent requests.</p>
  
  <p>The <code>Set-Cookie</code> header is stripped from the <code>HttpWebResponse.Headers</code> and the cookie does not appear in the <code>HttpWebResponse.Cookie</code>s or the <code>HttpWebRequest.CookieContainer</code>. However, if a subsequent request is made using that same <code>HttpWebRequest.CookieContainer</code> they are sent to the server, but they are inaccessible to the code.</p>
  
  <p>As far as I can tell, this makes them impossible to serialize or preserve in any way. It seems the only way to make this work will be to cache the actual username and password and login again every time.</p>
  
  <p>Is there something I am missing?</p>