Installing the cURL Command-Line Tool on Windows

    This tutorial shows you how to access Oracle Messaging Cloud Service via the REST interface by using the cURL command-line tool. cURL is free, open software that runs under various operating systems.

    This tutorial demonstrates cURL on a Windows 64-bit operating system that is enabled for the secure sockets layer (SSL). The authentication aspects of the Messaging Cloud Service require an SSL-enabled environment.

    Your first task is to install the appropriate version of cURL for your SSL-enabled environment.

    There is an ordered series of steps to follow to install cURL on Windows. There are two libraries to install and they must be installed before cURL will work with SSL. Also, they must be installed in this order to work. Do not skip the step to install a recent certificate.

    Install Visual C++ 2008 Redistributable Package.     

    For 64-bit systems: Visual C++ 2008 Redistributables (x64) from http://www.microsoft.com/en-us/download/details.aspx?id=15336

    For 32-bit systems: Visual C++ 2008 Redistributables (x32)

    download Visual C++ 2008 Redistributable x64

    Install Visual C++ 2010 Redistributable Package.     

    For 64-bit systems: Visual C++ 2010 Redistributables (x64) from http://www.microsoft.com/en-us/download/details.aspx?id=14632

    For 32-bit systems: Visual C++ 2010 Redistributables (x32)

    download Visual C++ 2010 Redistributable x64

    Install Win(32/64) OpenSSL v1.0.0k Light from http://www.shininglightpro.com/products/Win32OpenSSL.html.

    For 64-bit systems: Win64 OpenSSL v1.0.0k Light

    For 32-bit systems: Win32 OpenSSL v1.0.0k Light

    download Win64 OpenSSL v1.0.0k Light

    In your browser, navigate to the cURL welcome page at http://curl.haxx.se and click Download.

    click Download

    On the cURL Releases and Downloads page, click the link for the SSL-enabled version for your computer's operating system, download the zip file, and install it in a new folder on your computer.

    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 version for Windows is selected.

    choose Win64 binary SSL

    Install recent CA Certificates. Do not skip this step.

    Download cacert.pem, a recent copy of valid CERT files, from http://curl.haxx.se/docs/caextract.html.

    Copy it to the same folder where you placed curl.exe and rename it curl-ca-bundle.crt.

    download cacert.pem

    Invoke curl.exe from a command window (in Windows, click Start > Run and then enter "cmd" in the Run dialog box).

    download cacert.pem

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

    type help for curl commands

To navigate this Oracle by Example tutorial, note the following:

Hide Header Buttons:
Click the title to hide the buttons in the header. To show the buttons again, click the title again.
Topic List:
Click a topic to navigate to that section.
Expand All Topics:
Click the button to show or hide the details for the sections. By default, all topics are collapsed.
Hide All Images:
Click the button to show or hide the screenshots. By default, all images are displayed.
Print:
Click the button to print the content. The content that is currently displayed or hidden is printed.

To navigate to a particular section in this tutorial, select the topic from the list.