Home  >  Article  >  Backend Development  >  How Do I Install Curl on Windows?

How Do I Install Curl on Windows?

Barbara Streisand
Barbara StreisandOriginal
2024-11-03 22:17:03675browse

How Do I Install Curl on Windows?

Curl Installation on Windows

Instructions

To resolve the issue with curl_version() undefined function, follow these steps:

  1. Navigate to https://curl.haxx.se/dlwiz?type=bin in a browser.
  2. Choose your operating system (Windows /Win32 or Win 64) and then click "Select!".
  3. Select whether you will use curl in a Windows Command Prompt (Generic) or a Cygwin terminal (cygwin) for Win 32. For Win 64, choose whether you will use it in a Windows Command Prompt (Generic) or MinGW (MinGW64).
  4. Click "Select!" and choose your Windows operating system if required. Click "Finish".
  5. Click "Download" for the version with SSL enabled or disabled.
  6. Extract the files from the downloaded zip file to a convenient location, such as C:Program Files.

Testing Curl

  1. Open a Windows Command Prompt terminal.
  2. Set the path to include the directory where curl.exe is located. For example:
set path=%path%;"c:\Program Files\curl"
  1. Enter curl, and you should receive the following message:
curl: try 'curl –help' or 'curl –message' for more information

This indicates that curl is successfully installed and the path is correct.

The above is the detailed content of How Do I Install Curl on Windows?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn