Using cURL with a username and password?

I want to access a URL which requires a username/password. I’d like to try accessing it with 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?

1 thought on “Using cURL with a username and password?”

  1. It’s hard to comе by educated people in this particular topic, but
    you seem like you кnow what you’rе talking about! Thanks

    Reply

Leave a Comment