I am trying to create my own web browser based on a WPF web browser control. I implemented the IWebBrowser2 com interface and implemented handlers for the events Navigating() , NavigatedTo() and LoadCompleted() . But these event callbacks are fired only once for the top-level page. Now suppose the page has java script, css and image files; The browser downloads individual HTTP requests to download these files. We would like to capture individual HTTP request events. For example, if the structure of the HTML page
<html> <body> <img src="img1.bmp"/> <imp src="img2.bmp"/> </body> </html>
I would like to record separate boot times for img1.bmp and img2.bmp. Can someone suggest you a way to achieve this?
Meanwhile, I found that for this request for an image, etc. the downloadbegin () DWebBrowserEvents_Event , but I canโt get the URL from which it is downloaded, because the handler takes the value void as a parameter.
So, is there a way to get the url because there is an event that is downloadComplete that fires when the download is complete. So I can do it.
But I have to solve the specified image rendering time. I am stuck badly. Please help me....
c # wpf webbrowser-control
kinshuk4
source share