Silently accessing a file protected by basic auth

E.g. Drupal cron.php.

curl --anyauth --user [user]:[pass] --silent --compressed


Don’t understand this yet!..

cURL seems to cache the response somehow, so even if using basic auth you’ll get the same response as on first use regardless of whether you change the auth details or not, though sometimes it works and sometimes it doesn’t, e.g. you can change the pass and it’ll work for some but not others!

Last modified: 02/02/2010 Tags:

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top