cURL won't prompt me for password using GitHub API -


i'm following github's tutorial on using api. in git bash command prompt, type following

curl -i https://api.github.com/users/defunkt 

this pulls in json it's supposed to. however, when type

curl -i -u your_username https://api.github.com/users/defunkt 

it prints new line, if it's waiting me finish command or something. need press ctrl c escape. have tried different variations too,

curl -i -u "your_username" https://api.github.com/users/defunkt curl -i --user your_username https://api.github.com/users/defunkt curl -i --user "your_username" https://api.github.com/users/defunkt curl -i -user your_username https://api.github.com/users/defunkt curl -i -user "your_username" https://api.github.com/users/defunkt 

and nothing working. doing wrong?

-u, --user <user:password>           specify user name , password use server authentication. overrides -n, --netrc , --netrc-optional.            if specify user name, curl prompt password.            user name , passwords split on first colon, makes impossible use colon in user name           option. password can, still.            when using kerberos v5 windows based server should include windows domain name in user name, in order           server obtain kerberos ticket. if don't initial authentication handshake may fail.            when using ntlm, user name can specified user name, without domain, if there   single  domain  ,           forest in setup example.             specify domain name use either down-level logon name or upn (user principal name) formats. example, example\user ,           user@example.com respectively.            if use windows sspi-enabled curl binary , perform kerberos v5, negotiate, ntlm or digest  authentication    can           tell curl select user name , password environment specifying single colon option: "-u :".            if option used several times, last 1 used. 

so guess might have 2 options. 1 enter password when new line. other include password after username separated colon.


Comments