I am using ShDocVW.InternetExplorer to automate a website. I have added the BeforeNavigate2 event so I can look at the page that will be accessed next. In certain situations when I detect that a file download is going to happen, I switch to using HttpWebRequest and HttpResponse to download the file.
The problem I have is that when the BeforeNavigate2 event is called the headers parameter is null. I need to get the headers so I can get the cookies that are being sent.
Does anyone know why the headers isn't being passed to the BeforeNavigate2 event Is there some other way I can get the cookies associated with the POST being sent to the website