Trapping File Downloads in Browser

  • Thread starter Thread starter Joshua
  • Start date Start date
J

Joshua

Here's what i need to do using a BHO/Browser Extension/.NET/mshtml:

I would like to capture all the files downloaded by the web browser
when it loads a web page. This includes the images, the .js files,
the .css files, etc. The web page itself can be captured by accessing
the outterHTML of the the HTMLDocument loaded in the browser in the
DocumentComplete event. All this can be done in the BHO or Browser
Extension which has a reference to the Explorer and hence the document
through the SetSite method of the IObjectSite interface. How do i
capture the other files like images, .js, .css files too? What is the
event, etc that i need to handle.

Have been searching for an answer the whole day without any success.
Hence this email.

Joshua.
 
Well, depending on what your overall goal is, search on msdn.microsoft.com
and look at some wininet.dll functions.
Or, you could get an SDK version of wininet.dll from the INETSDK download
and create a wininet.dll log for each and every session. They're fairly
big though.

Otherwise, I'm not sure.

---Dan---
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Back
Top