Curl: Unable to get projects observed authentication problem

Karthik Kancharla's Avatar

Karthik Kancharla

15 Oct, 2020 11:47 AM

Curl: Unable to get projects observed authentication problem

below command used in build

curl https://ci.appveyor.com/api/projects -u karthikkancharla:xxx

  1. Support Staff 1 Posted by Feodor Fitsner on 15 Oct, 2020 05:14 PM

    Feodor Fitsner's Avatar

    AppVeyor API does not support Basic authentication (-u option). You have to use API token.

    With curl token can be passed like this:

    curl -H 'Accept: application/json' -H "Authorization: Bearer <TOKEN>" https://ci.appveyor.com/api/projects
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • curl_issue.png 56.3 KB

Attached Files

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.

Keyboard shortcuts

Generic

? 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