Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Install cURL
cURL is pre-installed on many Linux, Mac, and Windows systems. If cURL isn’t pre-installed on Windows, users can download a version at curl.haxx.se/. When using HTTPS on Windows, ensure that your system meets the cURL requirements for SSL.
Escaping the Session ID or Using Single Quotes on Mac and Linux Systems
When running the cURL examples, you can get an error on Mac and Linux systems due to the presence of the exclamation mark special character in the session ID argument. To avoid getting this error, use one of these solutions:
- Escape the exclamation mark (!) special character in the session ID by
inserting a backslash before it (\!) when the session ID is enclosed within
double quotes. For example, the session ID string in this cURL command has
the exclamation mark (!) escaped:
1curl https://MyDomainName.my.salesforce.com/services/async/67.0/job 2-H "X-SFDC-Session: 00D50000000IehZ\!AQcAQH0dMHZfz972Szmpkb58urFRkgeBGsxL_QJWwYMfAbUeeG7c1E6 3LYUfiDUkWe6H34r1AAwOR8B8fLEz6n04NPGRrq0FM" - Enclose the session ID within single quotes. For example:
1curl https://MyDomainName.my.salesforce.com/services/async/67.0/job 2-H 'X-SFDC-Session: sessionID'