- PHP script to log in to Drupal and save web page using cURL - The following the PHP script will log in to Drupal 6 and save a web page using cURL. It can be run from the command line (provided PHP is at /user/bin/php) via e.g. a cron job. #!/usr/bin/php <?php /** * Log in to Drupal 6 as USERNAME:PASSWORD and ...
- cURL - 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...
- How to get your IP from the command line - whatsmyip.org tells you your IP address clearly at the top of their web page. You can also use this tool from the command line by requesting http://automation.whatismyip.com/n09230945.asp. Here are a couple of examples using wget or curl: wget -q -O -...

