How to intercept responses #4866
Unanswered
mwpowellhtx
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm not positive, bit I think this one is money 💵 . I'm not sure exactly we need much else other or more than that, for now. Besided which, it seems as though if we muck at all with resource request handling, that throws a screwball at the whole puppeteering affair, anyway. // https://github.com/cefsharp/CefSharp/discussions/4866
public class WhalleyBotRequestHandler : RequestHandler
{
protected override IResourceRequestHandler GetResourceRequestHandler(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, bool isNavigation, bool isDownload, string requestInitiator, ref bool disableDefaultHandling)
{
Debug.WriteLine($"Request get resource request: {request.Url}");
return new MyResourceRequestHandler();
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I see more than less how to potentially intercept, document, whatever, request Urls.
I'm not sure I see a clean way of intercepting responses, even though the docs do state response filtering. I'm not sure I see where that is.
All I care about, really, is the response Url, I think.
But more over, I need to see some AJAX style requests emitting and/or responses being received, especially. These contain relevant bits of information that I need to structure the session, profile management, etc.
Beta Was this translation helpful? Give feedback.
All reactions