I want to access a URL which requires a username/password.
(我想访问一个需要用户名/密码的URL。)
I'd like to try accessing it with curl.(我想尝试使用curl访问它。)
Right now I'm doing something like:(现在我正在做类似的事情:)
curl http://api.somesite.com/test/blah?something=123
I get an error.
(我得到一个错误。)
I guess I need to specify a username and password along with the above command.(我想我需要指定用户名和密码以及上述命令。)
How can I do that?
(我怎样才能做到这一点?)
ask by user246114 translate from so