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:
    1. 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.
    2. 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.
  4. Go to http://curl.haxx.se/docs/caextract.html and download the digital certificate file named cacert.pem .
    1. 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:
  7. In the Start menu, right-click This PC and select More > Properties .
    1. Note : In Windows 7, right-click Computer and select Properties .
  8. Click Advanced System Settings .
  9. In the Advanced tab, click the Environment Variables button on the lower right side.
  10. Add a new variable called PATH .
  11. In the Edit environment variable dialog box for the new PATH variable, add the path to the curl.exe file. Example: C:\curl .
    1. path_var
  12. Windows 7 : In the Variable Value textbox, append a semicolon to the value, followed by the path to the curl.exe file. Example: C:\curl
    1. Keep clicking OK to accept the change and close the dialog box.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request