title: CefSharp - Capturing Resource Response Data
body: <p>I am trying to use <a href="https://github.com/ataranto/CefSharp" rel="nofollow">CefSharp</a> to visit a URL and capture all the resources retrieved during the loading of a given page (images, scripts, etc).  Presumably as a Stream or byte array per resource.</p>
  
  <p>CefSharp provides the interface <code>IRequestHandler</code>.  You can create a class which implements this interface to respond to Request/Response events, notably</p>
  
  <pre><code>OnResourceResponse(
      IWebBrowser browser, 
      string url, 
      int status, 
      string statusText, 
      string mimeType, 
      System.Net.WebHeaderCollection headers)
  </code></pre>
  
  <p>The problem is this does not provide the response body in any way, just the url, headers, status, etc.</p>
  
  <p>Is there a way to capture the data that the browser receives from the response or am I going to have to issue my own requests for the data using <code>HttpWebRequest</code>?  Thanks in advance!</p>