Page 1 of 1

Re: how to intercept the post request

Posted: Wed Oct 10, 2018 7:52 pm
by salvadordf
Use the TChromium.OnBeforeResourceLoad event.

These are the code comments for that event :

Code: Select all

  ///
  // Called on the IO thread before a resource request is loaded. The |request|
  // object may be modified. Return RV_CONTINUE to continue the request
  // immediately. Return RV_CONTINUE_ASYNC and call cef_request_tCallback::
  // cont() at a later time to continue or cancel the request asynchronously.
  // Return RV_CANCEL to cancel the request immediately.
  //
  ///
And this is the web page from the API docs about that event :
https://magpcss.org/ceforum/apidocs3/pr ... llback%3E)

Re: how to intercept the post request

Posted: Sun Oct 28, 2018 2:09 pm
by salvadordf
If someone else needs this, the new PostInspectorBrowser demo has all the code to inspect the POST data in a request.