title: Getting webbrowser cookies to log in
body: <p>I am creating an windows forms app, where I have a <code>webbrowser control</code>.</p>
  
  <p>After user logs in with the <code>webbrowser</code>, I want to log in also with same account with <code>Microsoft.Http.HttpClient</code> or <code>HttpWebRequest</code> or similar, it should be similar to <code>cURL</code> from <code>PHP</code>.</p>
  
  <p>Problem is that the webpage allows only single sign on per account and if I sign with HttpClient, it will kick the webbrowser out.</p>
  
  <p>What I want to know, if it is possible to hijack <code>webbrowser</code> session or get the <code>cookies</code> and use it in my <code>HttpClient</code> or similar <code>api</code>.</p>
  
  <p>I can use <code>webbrowser.Cookie</code> to get some data, but how to push it to <code>HttpClient</code>?</p>
  
  <p>Is that kind of thing even possible, that I can just take the cookies and use the same session? If so, how?</p>