Curl Installation on Windows
Instructions
To resolve the issue with curl_version() undefined function, follow these steps:
- Navigate to https://curl.haxx.se/dlwiz?type=bin in a browser.
- Choose your operating system (Windows /Win32 or Win 64) and then click "Select!".
- 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).
- Click "Select!" and choose your Windows operating system if required. Click "Finish".
- Click "Download" for the version with SSL enabled or disabled.
- Extract the files from the downloaded zip file to a convenient location, such as C:Program Files.
Testing Curl
- Open a Windows Command Prompt terminal.
- Set the path to include the directory where curl.exe is located. For example:
set path=%path%;"c:\Program Files\curl"
Copy after login
- Enter curl, and you should receive the following message:
curl: try 'curl –help' or 'curl –message' for more information
Copy after login
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!