I'm automating an Internet Explorer window using the IWebBrowser API. Is there a way to cancel all outstanding HTTP requests in IE/IWebbrowser?
I've tried the following and none of them work.
Calling
IWebBrowser::Stop()
. This only cancels navigation and does not stop existing downloads from continuing.Navigating to '
about:blank
'. This stops new requests from being made, but existing HTTP requests will continue.Calling
Abort()/Terminate()
on each of theIInternetProtocol
handlers. This causes IE to crash (not surprisingly).