Friday, December 14, 2007

A curly browser

You can use curl to transfer a URL ( of course, on a unix system )

The description section of the man page says:

curl is a tool to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction.

curl offers a busload of useful tricks like proxy support, user authentication, ftp upload, HTTP post, SSL connections, cookies, file transfer resume and more. As you will see below, the amount of features will make your head spin!

It also respects the env variable http_proxy. So you can basically do the following to transfer a URL via a proxy via commandl ine.

# http_proxy=[proxy-host]:[port] curl [url]



No comments: