cURL Access

The examples within this document use cURL to demonstrate how to access the Application Management REST API.

To use cURL to access the Application Management REST API:

  • Install cURL, as described in Quick Start.

  • In a command window, set the cURL environment variable, CURL_CA_BUNDLE, to the location of your local CA certificate bundle. For information about CA certificate verification using cURL, see: http://curl.haxx.se/docs/sslcerts.html.

  • Invoke cURL and specify one or more of the command-line options defined in the following table, as required, to direct its execution.

    cURL Option Description
    -d, --data @file.json Identifies the request document, in JSON format, on the local machine.
    -H Defines the content type of the request document.
    -i Displays response header information.
    -X Indicates the type of request (for example, GET, POST, and so on).
    -k Allows curl to perform insecure SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. This makes all insecure connections fail unless -k/--insecure is used.

    For example:

    curl -i -X GET -u <username>:<password> -H <request-header>:<value> https://<subdomain>.<domain>.com/<path>/<resource-path>
    
  • For detailed information cURL, refer to the following URL:

    https://curl.haxx.se/docs/manpage.html