tags:

views:

26

answers:

1

Hi,

I want to access a url which requires a username/password basic auth stuff. 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

so I just get some error back now, I guess I need to specify a username and password along with the above command, how can I do that?

Thanks

+3  A: 

curl -u username:password http://example.com

Finbarr