HISE Logo Forum
    • Categories
    • Register
    • Login

    Does Server.downloadFile make two requests?

    Scheduled Pinned Locked Moved General Questions
    download
    3 Posts 2 Posters 70 Views
    Loading More Posts
    • 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.
    • d.healeyD
      d.healey
      last edited by

      This issue has always been there but I've decided I would like to solve it. However I find the server could difficult to navigate.

      When I run Server.downloadFile, my server records it as two download attempts, if I paste the same URL into my browser it only records one download attempt - as it should.

      Does HISE make two requests, like a head request before the GET request or something?

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @d.healey
        last edited by

        @d-healey said in Does Server.downloadFile make two requests?:

        This issue has always been there but I've decided I would like to solve it. However I find the server could difficult to navigate.

        When I run Server.downloadFile, my server records it as two download attempts, if I paste the same URL into my browser it only records one download attempt - as it should.

        Does HISE make two requests, like a head request before the GET request or something?

        yeah and some servers get very picky about answering HISe when it does this.... which is a shame.

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by d.healey

          If I use CURL in HISE via a background task (runProcess) to download the file then it only records one download. So it is definitely an issue with Server.downloadFile()

          With CURL I'm using -L which is to follow redirects, I think this might have something to do with it since WooCommerce is taking the given URL and forwarding it to the real time-limited URL.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          19

          Online

          1.7k

          Users

          11.8k

          Topics

          102.7k

          Posts