Search code examples
qtqtwebkitqwebview

How to analyze reply from server using QtWebkit?


I am a beginner in Qt...

In my program i have a Qwebview which i try to access some site.

how can i analyze the request the user giving to the server? for example: user submitting a form..

and how can i analyze the reply coming from server...? for example: server replies by streaming a audio file to the browser when the user submit a form..and i want to capture those audio streams for analyzing it.

Any help? Thank u..


Solution

  • Create a custom network access manager and set it for your web page (see QWebPage::setNetworkAccessManager). In this special implementation, create a custom network reply which proxies the data, see this mirror tool for an example implementation.