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. [SOLVED]Is it possible to detect the resumable links via QNetworkAccessManager
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Is it possible to detect the resumable links via QNetworkAccessManager

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 868 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.
  • A Offline
    A Offline
    adnan
    wrote on last edited by
    #1

    Suppose i wish to pause the download, and start it again. Can we know before hand whether the link is resumable

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      As far as I know <code>Content-Range</code> and <code>Accept-Ranges</code> headers are present if the server supports resumable downloads.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adnan
        wrote on last edited by
        #3

        Thanks a lot! worked like a charm
        @if(!replySegment->rawHeaderList().contains("Content-Range")&&!replySegment->rawHeaderList().contains("Accept-Ranges"))
        {
        isResumable=false;
        return;
        }@

        1 Reply Last reply
        0

        • Login

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