Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebEngineUrlRequestInterceptor - get content response
Forum Updated to NodeBB v4.3 + New Features

QWebEngineUrlRequestInterceptor - get content response

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 318 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kobid
    wrote on last edited by
    #1

    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();
    }
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved