--- curl version 2 Mon Jul 09 08:08:16 +0000 2007
+++ curl version 5 Mon Oct 20 13:50:33 +0000 2008
@@ -1,17 +1,26 @@
Command line internet/network loader tool and ajax test tool. Read the contents
of a URL, dump the results to the stdout. Basic USE:
curl [options] [URL...]
-To see if a site is alive, just get the headers, e.g.:
+To see if a site is alive, just get the headers: curl --head www.yahoo.com
-curl --head www.yahoo.com
+A live response returns status, cookies, content length, etc.
-A live response should return "200 Ok" on the first line, cookies, content
-length, etc.
+To send custom headers (anything you want!) use: curl --header "User-Agent:
+something-special" google.com
-To return the entire page
-curl www.google.com
+To return the entire page: curl www.google.com
-Related programs: wget,
+The view the man page: curl --manual | less
+
+To retrieve data with POST: curl -d "name=dpw" www.google.com
+
+Related programs: wget
+
+This is helpful to get specific javascript back:
+curl -H "Accept: application/json" -i -X GET http://localhost:3000/projects/3
+
+Delete via rest:
+curl -X DELETE http://localhost:3000/projects/1