WebBrowser hook when loading external resources

  • Thread starter Thread starter alexander.stuckenholz
  • Start date Start date
A

alexander.stuckenholz

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
 
Alex,

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

http://msdn2.microsoft.com/en-us/library/aa767743(VS.85).aspx

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]
- (e-mail address removed)

"(e-mail address removed)" <[email protected]>
wrote in message
news:6b526d7b-03fb-4ba2-a048-2a4f1006245f@i72g2000hsd.googlegroups.com...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top