Can't use curl to download artifacts

RonG's Avatar


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"

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.

  1. Support Staff 1 Posted by Ilya Finkelshte... on 01 May, 2018 11:22 PM

    Ilya Finkelshteyn's Avatar

    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:


  2. 2 Posted by RonG on 01 May, 2018 11:26 PM

    RonG's Avatar

    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.


  3. Support Staff 3 Posted by Ilya Finkelshte... on 01 May, 2018 11:27 PM

    Ilya Finkelshteyn's Avatar

    PowerShell Core is perfect option, but it is up to you.

  4. 4 Posted by Volker Enderlei... on 03 May, 2018 09:40 PM

    Volker Enderlein's Avatar

    I was facing similar problems. See if the solution mentioned in thread helps you further.

    Cheers Volker

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM


21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM