WebBrowser hook when loading external resources

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alexander.stuckenholz@fernuni-hagen.de

    WebBrowser hook when loading external resources

    Hello,

    is it possible to hook into the WebBrowser control, so that I can
    influence the way the control loads data (like images, css-files, ...)
    from web-servers?

    I would like to decrypt resources before they are parsed.

    Best regards,

    Alex
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: WebBrowser hook when loading external resources

    Alex,

    You can write your own Aysnchronous Pluggable Protocol, which is what
    the WebBrowser control ultimately uses:



    However, I am not sure that you can replace the HTTP protocol (it might
    be hardcoded into COM to not allow it to be replaced) but you can try it.

    It's not easy though, as as you have to do a lot of COM interop to get
    this to work, but its the only way to hook into the download stream for the
    WebBrowser.

    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "alexander.stuc kenholz@fernuni-hagen.de" <alexander.stuc kenholz@gmail.c om>
    wrote in message
    news:6b526d7b-03fb-4ba2-a048-2a4f1006245f@i7 2g2000hsd.googl egroups.com...
    Hello,
    >
    is it possible to hook into the WebBrowser control, so that I can
    influence the way the control loads data (like images, css-files, ...)
    from web-servers?
    >
    I would like to decrypt resources before they are parsed.
    >
    Best regards,
    >
    Alex

    Comment

    Working...