How Do I Install Curl on Windows?

Barbara Streisand
Release: 2024-11-03 22:17:03
Original
660 people have browsed it

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"
Copy after login
  1. 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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!