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: I get an error. I guess I need to specify a username and password along with the above command. How can I do that?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)