The examples within this chapter use the cURL command-line tool to demonstrate how to access the Commerce Cloud Search and Navigation REST API. To connect securely to a server, you must install a version of cURL that supports SSL.

The following procedure demonstrates how to install cURL on a Windows 64–bit system.

You are now ready to send requests to the Commerce Cloud Search and Navigation REST API using cURL.

This table summarizes the cURL options used in the command examples.

cURL Option

Description

-d, --data @filename.json

Identifies the request document, in JSON format, on the local machine.

-H

Defines one or both of the following:

Content type of the request document

Custom header to pass to server

-o, --output filename 

Writes output to a file instead of stdout

-X

Indicates the type of request (for example, GET, POST, and so on).

For example:

curl -X GET -H <request-header>:<value>
https://<subdomain>.<domain>.com/<path>/resource-path>

Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices