title: How do I set "Cookie" header in a new request from "Set-Cookie" header response for a SOAP client in a WPF application
body: <p>I'm integrating my WPF application with 2 WCF applications (one is an "Authentication Application" and the other is a "real" application that requires authentication). The "Authentication Application" returns 3 <code>Set-Cookie</code> headers, and I need to add them to the request header of the "real" application. But I'm unsure of how to get those headers (only the result) I can get:</p>
  
  <pre><code>AuthenticationApplicationService.SoapClient authenticationSoapClient = new AuthenticationApplicationService.SoapClient("AuthenticationApplicationServiceSoap");
  bool loggedInSuccess = await authenticationSoapClient.PerformLoginAsync();
  // how do I get the cookie headers from this call and set them on the next?
  
  RealService.SoapClient realSoapClient = new RealService.SoapClient("RealServiceSoap");
  realSoapClient.PostAsync("hello");
  </code></pre>
  
  <p>That first call to <code>PerformLoginAsync</code> returns true or false for successfully logged in, and the headers inclue <code>Set-Cookie</code>. How can I grab those headers and set <code>Cookie</code> headers on the next request to <code>PostAsync</code>?</p>
  
  <p>If there are further questions, please let me know!</p>