Re: Using DWebBrowserEvents2 to handle redirects...



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


.



Relevant Pages

  • Re: The Windowsupdate site redirects and fails
    ... > which immediately redirects in turn to ... I would suspect your User-Agent string. ... I suspect it is not your browser which is telling you that but the ... Another site which you could use for comparing browser functionality is: ...
    (microsoft.public.windowsupdate)
  • Still fails - giving up - Thanks anyway for your careful help
    ... Subject: Re: The Windowsupdate site redirects and fails ... > which immediately redirects in turn to ... the application your browser is connecting to. ... User-Agent string that each request contains? ...
    (microsoft.public.windowsupdate)
  • integrated authentication not working from redirect
    ... When the above page is accessed by the browser above, ... Windows logon credentials are supplied, ... If I access cgi (also hosted in the same security ... zone as the browser) that redirects to the ...
    (microsoft.public.inetserver.iis.security)
  • Re: My web
    ... You might need a javascript enabled browser for my website to ... To be able to access all features, you must have a browser that can ... which also redirects to another page ... Good job s/es don't have ears. ...
    (alt.internet.search-engines)
  • Fwd: cdimage.debian.org presents different faces for "ftp" and "http" access
    ... redirects me to ... but pointing my browser at ... been built and the http server still needs to be synced. ...
    (Debian-User)