curlconverter / curlconverter

Transpile curl commands into Python, JavaScript and 27 other languages
https://curlconverter.com
MIT License
7.21k stars 876 forks source link

-u command does not work #24

Closed varunvt126 closed 7 years ago

NickCarneiro commented 7 years ago

Can you provide a few example commands?

xiaolin commented 7 years ago

curl "https://api.test.com/" -u ":some_password" or curl "https://api.test.com/" -u "some_username:some_password"

imravichaudhary commented 7 years ago

curl -X PUT http://localhost:5984/test/_security -u "admin:123" -d '{"admins":{"names":[], "roles":[]}, "readers":{"names":["joe"],"roles":[]}}'

NickCarneiro commented 7 years ago

I've added basic auth support for python, node, and php in 0.0.27. The code is live.

Thank you for providing examples, @xiaolin and @imravichaudhary.