c# - CefSharp - Capturing Resource Response Data -


i trying use cefsharp visit url , capture resources retrieved during loading of given page (images, scripts, etc). presumably stream or byte array per resource.

cefsharp provides interface irequesthandler. can create class implements interface respond request/response events, notably

onresourceresponse(     iwebbrowser browser,      string url,      int status,      string statustext,      string mimetype,      system.net.webheadercollection headers) 

the problem not provide response body in way, url, headers, status, etc.

is there way capture data browser receives response or going have issue own requests data using httpwebrequest? in advance!

i've found using schemehandlers better in terms of control. these allow trap , respond requests given scheme.

public bool processrequestasync(irequest request, ischemehandlerresponse response,  onrequestcompletedhandler requestcompletedcallback) 

the response contains headers/mimetype , stream.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -