Results 1 to 2 of 2

Thread: Monitor requests with QNetworkAccessManager

  1. #1
    Join Date
    Apr 2016
    Posts
    4
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Monitor requests with QNetworkAccessManager

    Is this possible to capture requests sent with QNetworkAccessManager by default ? Basically what I want it a SIGNAL that is emmited after user does lets say
    Qt Code:
    1. QNetworkAccessManager::post
    To copy to clipboard, switch view to plain text mode 
    and retrieve post data. I know I can do this myself but I'm just wondering if such thing is already implemented. There is
    Qt Code:
    1. QNetworkReply::operation()
    To copy to clipboard, switch view to plain text mode 
    but it just returns type. And QNetworkRequest doesn't store contents.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Monitor requests with QNetworkAccessManager

    You could probably implement at QNetworkProxyFactory, set it as the application-wide factory and for each request just return a QNetworkProxy::DefaultProxy for every request.

    Not sure though is the factory's query method is called for every access to an URL or only for each URL once.

    Cheers,
    _

Similar Threads

  1. QNetworkAccessManager and multiple simultaneous requests
    By Angelo Cruz in forum Qt Programming
    Replies: 4
    Last Post: 2nd July 2015, 22:09
  2. QNetworkAccessManager and multiples requests
    By hassinoss in forum Qt Programming
    Replies: 7
    Last Post: 26th August 2014, 14:43
  3. Multiple requests with QNetworkAccessManager
    By ljuhrich in forum Qt Programming
    Replies: 7
    Last Post: 7th June 2013, 08:34
  4. Multiple QNetworkAccessManager requests.
    By Diath in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2011, 22:04
  5. Replies: 4
    Last Post: 19th January 2011, 13:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.