Thursday, July 10, 2008

cURL , A command line tool with URL Support !


One of my co-worker introduced a tool named cURL to me today. It a quite handy command line tool for transferring files with URL Syntax supporting most of the interner protocols like FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. curl supports SSL certificates, HTTP POST, HTTP PUT, proxy tunneling , HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos and many more)

You can download cURL from . It’s a free and open software tools.

For example curl : return a html version of your web page in your console window. Its detail tutorial and example can be found at

I have use curl on the following
curl -X POST -H 'Content-type: text/xml' -d @ < firstfocus.xml

Here I am sending an xml file, firstfocus.xml, to the server . process.gsp do calls the controller which helps in the business logic at the back end and return the result on my console window. It’s a pretty good tool for testing and development environment.
Thanks to Joshua for letting me know about this tool and its usage.


Post a Comment

I love to entertain onymous user Comment !


 © 2006-2010