title: How to send a cookie in a POST using SHDocVw.InternetExplorer.Navigate?
body: <p>Problem:
  In our organization we have a home grown single-sign-on app written in c#/.Net2 that has been working for years.  We recently found that the app doesn’t work with Outlook Web Access 2010.  A few web searches turned up a couple articles from SSO vendors (<a href="http://www.novell.com/support/php/search.do?cmd=displayKC&amp;docType=kc&amp;externalId=7006961" rel="nofollow">Novell KB</a> and <a href="http://support.citrix.com/article/CTX128197" rel="nofollow">Citrix KB</a>) that refer to the issue.  OWA2010 executes a javascript on submit that adds a cookie called “PBack=0” that if not included in the post will result in an authentication failure.</p>
  
  <p>Question:
  How can I include a cookie in the Navigate method of SHDocVw.InternetExplorer?</p>
  
  <pre><code>//ie2 is the instance of IE (SHDocVw.InternetExplorer) containing the OWA login page
  ie2.Navigate(URLToPostTo, ref vFlags, ref vTarget, ref vPost, ref vHeaders);
  </code></pre>