Get all http request while loading a url with webkit
Unsolved
Qt WebKit
-
I am trying to get the all associates urls as string while loading a html page.
[example]
index.html
<scipt src='js/index.js'>
<iframe src='google.com'>
<img src='img/cover.png'>while rendering/loading index.html, I want to get those ['js/index.js', 'google.com', 'img/cover..png'] as string in my program.
-
@Sudip-Ghimire
subclass QNetworkAccessManager and reimplement createRequest and call the base class implementation.
Then set your custom NAM to the QWebPage:
https://doc.qt.io/archives/qt-5.5/qwebpage.html#setNetworkAccessManager