I am attempting to create a custom web browser based on the WPF Web browser control. I have implemented the IWebBrowser2 com interface and implemented the handlers for Navigating(), NavigatedTo() and LoadCompleted() events.
But these event callbacks are fired only once for the top level page. 
Now suppose a page has some java script , css and image files in it; the browser issues separate HTTP requests to download these files. We would like to capture the individual HTTP request events. For example, if the structure of the HTML page is 
<html>
  <body>
    <img src="img1.bmp"/>
    <imp src="img2.bmp"/>
  </body>  
</html>
I would like to capture the individual download times for img1.bmp and img2.bmp. Could someone please suggest a way to achieve this?
Meanwhile I found that downloadbegin() event of DWebBrowserEvents_Event is fired for these request for image etc, but I can't get the URL from which it is downloading, as the handler takes void as parameter.
So is there any way I can get the URL corresponding because there is event that is downloadComplete which is fired when download is complete. So by that I can accomplish that way.
But I have to solve the above image rendering time. I am stuck badly. Please help me....