0

I have a file on the server that is HTTP Head password protected, but when I tried to get the page the command returned with nothing at all:

curl --user username:password http://mysite.com
  • 1
    what does curl -v --user ... say (-v stands for verbose output)? – peterph Feb 27 '14 at 21:26
0

The exit status (in shell variable $?) will tell you what failed. There is a table of meanings in the manual page. For interactive use, -v is more convenient.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.