Curl to prompt a User Name and Password
for .htaccess style password protection, You can code the userid password as in:
curl -u userid:password http://.......
Try the following like :
curl -su 'user' <url>
It should prompt password
for the user
Examples:
--user
curl -v --user myName:mySecret http://example.com/foo/bar
-u
curl -v -u myName:mySecret http://example.com/foo/bar
(example for Minh Nguyen see https://stackoverflow.com/a/26826658/3411766)
curl -v -su 'myName' http://example.com/foo/bar
asks for the pw of user 'myName'.