Silently accessing a file protected by basic auth
E.g. Drupal cron.php.
curl --anyauth --user [user]:[pass] --silent --compressed http://the.web.site/cron.php
Caching
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!