Pages tagged with curl

I'm still in the process of tagging pages that were migrated from the old site, so for now you're best off using the search engine rather than relying on the tags.

  • 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 even...
  • How to get your IP from the command line - http://icanhazip.com/ will tell you your IP. curl http://icanhazip.com/ I previously did this using whatsmyip.org, but it doesn’t work any more. whatsmyip.org tells you your IP address clearly at the top of their web page. You can also use this to...
  • 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 ...

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