Using QWebEngineUrlRequestInterceptor to get AJAX POST data?

  • I'd like to intercept POST requests made by JavaScript, read the POST data, and send a reply. Formerly with QWebKit, I used QNetworkAccessManager to do this.

    With Qt 5.6, I had been hoping to use QWebEngineUrlRequestInterceptor to do the same.

    However, I don't see any way to read the POST data. It gives me other information about there request just fine (such as the URL). Any idea how I can get the POST data?

Log in to reply