or Create a profile
01 May, 2018 10:29 PM
I'm trying to use curl (from a Mac) to download artifacts, but I just get back zero bytes. No error, just zero bytes.
I'm doing the following:
curl -H "Authorization: Bearer xxxxxxxxxxxxx" https://ci.appveyor.com/api/projects/xxxxx/xxxxxxx/artifacts/xxxxxxx.zip
If I enter the url into a browser (Chrome), then the file comes down correctly.
If I spell the artifact wrong or don't have the Authorization: Bearer, then I (correctly) get an error back.
on 01 May, 2018 11:22 PM
Artifacts stored in Azure blob storage. This request is being redirected to temporary URL on Azure. For some reason curl is sending authorization header to URL it was redirected to. It should not be sent.
Simpler option is use PowerShell:
I know some our clients did custom solution with getting second URL and sending new request to it, check this sample: https://github.com/parekhkb/DownloadLatestAppVeyorBuild/blob/master...
on 01 May, 2018 11:26 PM
This all needs to be done from a non-windows machine, so using PowerShell is not an option. I'll look at the second URL code, it might do what I need.
on 01 May, 2018 11:27 PM
PowerShell Core is perfect option, but it is up to you.
on 03 May, 2018 09:40 PM
I was facing similar problems. See if the solution mentioned in thread helps you further.
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the AppVeyor staff to resolve this discussion.
This discussion is private.
Only you and AppVeyor support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.