curl: provide user and password for apache .htaccess file
.htaccess, apache2, curl
Solution
Use this curl option for the commandline
-u "User:Password"
More details about this parameter can be found from here.
Problem
I am using `cURL` to test some RESTful APIs. Some of these APIs are served from an Apache machine, and protected with user/password combination using simple `.httaccess` files. Is there a way to provide cURL with a username / password combination as arguments?