0

Running this curl command:

curl -u user:pass -X POST -H "Content-Type: application/json" https://localhost:7990/rest/api/1.0/projects/fw/repos

fails with:

bash: -X: command not found $ curl: no URL specified!

This command worked before, so I have no idea what is wrong.

eeijlar
  • 1,232
  • 3
  • 20
  • 53

1 Answers1

2

Looks like you have a spcial character in you username or, more probably, in the password. Try using single quotes around the credentials, like so:

curl -u 'user:pass' -X POST -H "Content-Type: applicat.....
Arminius
  • 1,029
  • 7
  • 11