I am trying to use CefSharp to visit the URL and capture all the resources obtained when loading this page (images, scripts, etc.). Presumably as a stream or an array of bytes per resource.
CefSharp provides an IRequestHandler interface. You can create a class that implements this interface to respond to Request / Response events, especially
OnResourceResponse( IWebBrowser browser, string url, int status, string statusText, string mimeType, System.Net.WebHeaderCollection headers)
The problem is that it does not provide the response body in any way, just URLs, headers, status, etc.
Is there a way to capture the data received by the browser from the response, or will I have to send my own requests for data using HttpWebRequest ? Thanks in advance!
Jason source share