Installing cURL

NOTE: These instructions are reprinted from:

https://help.zendesk.com/hc/en-us/articles/229136847-Installing-and-using-cURL#install

 

Mac

cURL is installed by default on MacOS X. To try it out, see Testing your cURL installation below.

Windows

If you have Windows, you can download and install cURL as follows:

1. In Windows, create a new folder called curl in your C Drive, ie C:\curl

2. Go to http://curl.haxx.se/download.html and download one of the following zip files:

  • If you have a Windows 64 system, scroll to the Win64 - Generic section and look for the latest Win64 ia64 zip version with SSL support. It's normally second in the list. Click the version number to start the download.
  • If you have a Windows 32 system, scroll to the Win32 - Generic section and look for the latest Win32 zip version with SSL support. It's normally second in the list. Click the version number to start the download.

3. Unzip the downloaded file, look in the extracted folders, locate curl.exe, and move it to the main C:\curl folder.  (Note, you don't have to save it to that folder.  You can save it anywhere. But wherever you save it, you need to use that location in the rest of the instructions below instead of C:\curl.)

4. Go to http://curl.haxx.se/docs/caextract.html and download the digital certificate file named cacert.pem .

  • The PEM file contains a bundle of valid digital certificates. The certificates are used to verify the authenticity of secure websites. They're distributed by certificate authority (CA) companies such as GlobalSign and VeriSign. The PEM file allows cURL to connect securely to the Riffyn API using the Secure Sockets Layer (SSL) protocol.

5. Move the cacert.pem file to your C:\curl folder and rename it curl-ca-bundle.crt .

6. Add the curl folder path to your Windows Path environment variable so that the curl command is available from any location at the command prompt. Update the variable as follows:

a. Open the system properties:

In Windows 7, right-click Computer and select Properties. Click Advanced System Settings. 

In Windows 10, type "environment" into the search box and select the "Edit the system environment variables".

 

b. In the Advanced tab of the System Properties, click the Environment Variables button on the lower right side.

Select the Path variable. Click the Edit... button.

c. Add curl to your path.

In Windows 7 : In the Variable value: textbox, append a semicolon to the value that is already there, then add C:\curl.

In Windows 10, add the path to the curl.exe file. Example: C:\curl .

path_var

 

d. Keep clicking OK to accept the change and close the dialog box.

7. Now you should be good to go.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request