title: How can I access cookie from InternetExplorer.Application
body: <p>Is it possible to access response header from InternetExplorer.Application in VB/VBA/VB.net?</p>
  
  <pre><code>myIE = CreateObject("InternetExplorer.Application")
      .Visible = False
      .Navigate "http://someserver/resources/postrequest"
  </code></pre>
  
  <p>Give this code, how would i get a hold of the header, or more specifically, the cookie.</p>
  
  <p>This is very useful for making web service calls using MSXML2.ServerXMLHTTP to servers that required cookie for authentication.  Once you obtain the cookie it could be passed in the header for the subsequent web service calls.</p>