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?
-
@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.
-
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.