Get the browser's response from authenticated site using curl

Tuesday, May 19, 2009 Posted by Md. Monjurul Hasan
Some days ago I needed the images generated by a secure webpage on a routine basis (you have to enter by giving username and password and when it is clicked it runs its cgi script/php file). Without going to the browser I simply ran a shell script from cron which mainly has the following command.

curl -u username:password url

saved a lot of tym!!
Labels: ,