title: How to get the URL for which downloadBegin() event is fired?
body: <p>I am attempting to create a custom web browser based on the WPF Web browser control. I have implemented the <code>IWebBrowser2 com</code> interface and implemented the handlers for <code>Navigating()</code>, <code>NavigatedTo()</code> and <code>LoadCompleted()</code> 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 </p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;img src="img1.bmp"/&gt;
      &lt;imp src="img2.bmp"/&gt;
    &lt;/body&gt;  
  &lt;/html&gt;
  </code></pre>
  
  <p>I would like to capture the individual download times for img1.bmp and img2.bmp. Could someone please suggest a way to achieve this?</p>
  
  <p>Meanwhile I found that downloadbegin() event of <code>DWebBrowserEvents_Event</code> 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.</p>
  
  <p>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.</p>
  
  <p>But I have to solve the above image rendering time. I am stuck badly. Please help me....</p>