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. QNetworkReply, HTTP file download, and error headers on failure

QNetworkReply, HTTP file download, and error headers on failure

Scheduled Pinned Locked Moved Solved General and Desktop
qnetworkreplyqnetworkaccessm
3 Posts 2 Posters 1.2k 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.
  • C Offline
    C Offline
    Catherine Olsen
    wrote on 6 Jun 2016, 14:19 last edited by
    #1

    Hey folks, I just need to tap the knowledge base on something here as when it comes to web standards. Web standards drive me crazy and I need to have error checking working.

    For a number of the files I download, I have a system in place to handle automated downloads when things "should" appear. However, I can't always guarantee those files will be there at the same time everyday. Plus via the http properties of this webpage (I would use QFtp for files, however due to various reasons I have to use the http site as it'll trim files in real time for me and save on bandwidth and download times, which is crucial, and it's a third party resource so I can't tell them to fix not giving a valid file size to me for error checking), I cant get a valid file size... it just gives me -1, even though I'm getting valid files to download.

    However, I know I can scan the http headers to evaluate headers via QNetworkReply (or some other mechanism). What do I need to filter out, so I can declare the download not found, and then process the error and requeue the download request for a future time.

    Thanks!

    Cathy.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Catherine Olsen
      wrote on 6 Jun 2016, 16:00 last edited by
      #2

      Never mind, I just figured this out. Please close.

      T 1 Reply Last reply 6 Jun 2016, 16:59
      0
      • C Catherine Olsen
        6 Jun 2016, 16:00

        Never mind, I just figured this out. Please close.

        T Offline
        T Offline
        the_
        wrote on 6 Jun 2016, 16:59 last edited by
        #3

        @Catherine-Olsen
        Maybe you could post your solution here so if others are facing similar problems they can find a way to go? ;)

        -- No support in PM --

        1 Reply Last reply
        0

        3/3

        6 Jun 2016, 16:59

        • Login

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