Tuesday 17 November 2015

Installing CURL under MS Windows 7 -64 bits

( based on "http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/objectstorage/restrict_rw_accs_cntainers_REST_API/files/installing_curl_command_line_tool_on_windows.html")

- In your browser, navigate to the cURL welcome page at http://curl.haxx.se and click Download.
The cURL website offers a wizard to find the appropriate version for your computer's operating system.

For this tutorial, the 64-bit generic, SSL-enabled & SSH enabled version for Windows is selected.
cf  "curl-7.45.0-win64-mingw.7z" at http://curl.haxx.se/dlwiz/?type=bin&os=Win64&flav=-&ver=-&cpu=x86_64

- Uncompress the file to a specific location (by adding  a new directory called "curl")

- Add the corresponding "curl\bin" directory to the environment variable PATH

- Invoke curl.exe from a command window (in Windows, click Start > Run and then enter "cmd" in the Run dialog box), testing it with a website ; A cURL to the Google site should return the corresponding HTML file :

curl www.google.fr

- You can enter curl --help to see a list of cURL commands.

- For example, to save the result from a curl command to localfile, we can use the o option :

curl -o [localfile] [URL]

You will find other practical cURL command examples at http://www.thegeekstuff.com/2012/04/curl-examples/