cURL a web page

13 June 2005 · 1 comment

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 [...]

 

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:
curl ftp://name:password@mactips.info/
and to save a file in this way:
curl ftp://name:password@mactips.info/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.

Clip to Evernote

1 comment

Tell us what you think.
Note: there may be a delay before your comment appears. I now approve all comments from new visitors, in an attempt to keep spam at bay.

Add your Comment

Older Post:

Newer Post: