Re: Using DWebBrowserEvents2 to handle redirects...
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 12 Jul 2006 10:46:00 -0400
ewahl@xxxxxxxxxxxxxxxxxxxxx wrote:
Hi. I am working with a WebBrowser object in .Net, and I am trying to
capture events that happen when the WebBrowser handles a
Response.Redirect.
Redirects are handled transparently to the browser. If redirects are
involved, a URL in NavigateComplete2 event would be different from a URL
in BeforeNavigate2 event. The URL in NavigateComplete2 is the final
destination of a chain of redirects, but you don't get any notification
of intermediate redirects, if any.
If you really need to know low-level details of HTTP requests issued by
the browser, you can use this technique:
http://groups.google.com/group/microsoft.public.inetsdk.programming.mshtml_hosting/msg/76bf4910a289d4b3
Be aware that, in my educated opinion, it cannot be implemented in
managed code.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Using DWebBrowserEvents2 to handle redirects...
- From: ewahl
- Using DWebBrowserEvents2 to handle redirects...
- Prev by Date: Re: How can I popup a hidden menu on webbrowser?
- Next by Date: Trying to populate my db after filter
- Previous by thread: Using DWebBrowserEvents2 to handle redirects...
- Next by thread: Trying to populate my db after filter
- Index(es):
Relevant Pages
|
|