问题
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?
来源:https://stackoverflow.com/questions/35448058/intercept-ajax-post-request-and-read-data-using-qwebengine