Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QWebEngineUrlRequestInterceptor - get content response



  • I'm able to catch requested urls by installing custom request interceptor but QWebEngineUrlRequestInfo contains only urls. Is it also possible to catch content which is return by those requests? Some kind of Response Interceptor?

    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();
    }
    

Log in to reply