1

I'm able to catch requested urls by installing custom request interceptor butQWebEngineUrlRequestInfo contains only urls. Is it also possible to catch content which is return by those requests?

void RequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
{
    qDebug() << "IN " << info.requestMethod().toStdString().data() << " " << info.initiator().toString();
    qDebug() << "FP " << info.requestMethod().toStdString().data() << " " << info.firstPartyUrl().toString();
    qDebug() << "RL " << info.requestMethod().toStdString().data() << " " << info.requestUrl().toString();
}
Dibo
  • 1,159
  • 17
  • 34
  • 1
    The intersection of QWebEngineUrlRequestInterceptor is given before the request, so there is no information that you want. – eyllanesc Feb 05 '20 at 16:39
  • Yes, I expected that but thought that maybe there is similar way to get content. Some Response Interceptor etc – Dibo Feb 05 '20 at 16:41
  • Unfortunately there is no public method, perhaps if you dig into the private API of Qt WebEngine and chromium – eyllanesc Feb 05 '20 at 16:43
  • 1
    Did you find out a way to intercept the content response data in the end please? – SamG101 May 26 '20 at 10:15

0 Answers0