The weekend whizzed by, occupied by work on Saturday and installing a new letterbox on Sunday, along with some play, so I didn’t have much time to experiment with cURL. It looks pretty nifty though and my limited tests brought great results. cURL seems to be a very speedy way to download web pages and FTP listings or files. The cURL – Manual has a great deal of info so I’m sure there’s much more it can do too.
Here’s what I did: I opened Terminal and typed in
curl http://mactips.info/index.php > ~miraz/Desktop/mt.html
The result of that was that cURL went away to
http://mactips.info/index.php and very quickly saved the HTML to a file called
mt.html on my Desktop.
I was able to list an FTP directory on my own server like this:
and to save a file in this way:
curl ftp://name:email@example.com/abc.css > ~miraz/Desktop/test.css
Fast, efficient, and very cool. I’m not sure, but this may be a Tiger thing and may not work in Panther.