Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Check status of multiple urls (concurrent)
Forum Updated to NodeBB v4.3 + New Features

Check status of multiple urls (concurrent)

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 405 Views 1 Watching
  • 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.
  • Z Offline
    Z Offline
    zefex
    wrote on last edited by
    #1

    I have a QMap<QString, QUrl> and I wanted to do a HEAD request in all of them (concurrently) and check if the returned content-type is a video.

    I was wondering, how can I do this and in a concurrently way?

    jsulmJ 1 Reply Last reply
    0
    • Z zefex

      I have a QMap<QString, QUrl> and I wanted to do a HEAD request in all of them (concurrently) and check if the returned content-type is a video.

      I was wondering, how can I do this and in a concurrently way?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @zefex Using https://doc.qt.io/qt-5/qnetworkaccessmanager.html
      It is assynchronous and you can do as many requests in parallel as you like.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      5
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        To add to @jsulm, while you can start as many request as you want, only 6 will be run concurrently. The other will be queued and processed as soon as possible.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        4

        • Login

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