Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Get all http request while loading a url with webkit

Get all http request while loading a url with webkit

Scheduled Pinned Locked Moved Unsolved Qt WebKit
webengineweb pagewebkitnetworkingc++
2 Posts 2 Posters 669 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.
  • S Offline
    S Offline
    Sudip Ghimire
    wrote on 2 Apr 2020, 15:27 last edited by
    #1

    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.

    R 1 Reply Last reply 2 Apr 2020, 20:07
    0
    • S Sudip Ghimire
      2 Apr 2020, 15:27

      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.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 2 Apr 2020, 20:07 last edited by
      #2

      @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

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      1/2

      2 Apr 2020, 15:27

      • Login

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