How to install Curl on windows
Curl is a universal library and command-line tool for data transferring with various common protocols. The protocols including DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, Telnet and TFTP. Curl also supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, HTTP/2, cookies, user+password authentication (Basic, Plain, Digest, CRAM-MD5, NTLM, Negotiate and Kerberos), file transfer resume, proxy tunneling and more.
However, Curl is not preinstalled in the windows system. But it can be easily build up in your windows system followed by these few steps.
1. Download curl from internet
Connect to https://curl.haxx.se and click on download.
2. Download the curl package
Please choose the package that suit for your system. In this demonstration, I used the version 7.54.1 provided by Viktor Szakáts.
3. Unzip the file and put it in the folder
Unzip the file with software like WinRAR to your target folder. I put the curl folder to my C:\ . In this step, you will have to find the folder which curl.exe is located in. It is normally under the folder of \bin\ . So the absolute pathway of curl.exe will be located in:
C:\curl-7.54.1-win64-mingw\curl-7.54.1-win64-mingw\bin
4. Add path to System Variables
Now we need to add the path to your Environment properties setting.
Click on:
Computer>Properties>Advanced system setting>Advanced>Environment Variables and add
and add:
;C:\curl-7.54.1-win64-mingw\curl-7.54.1-win64-mingw\bin
to the end of your System variable of path.
5. Give it a go
Open your Command lien tool and type:
curl www.google.com
If you can see successfully the HTML files means that the curl has successfully installed on your local machine.
Well done!
Comments
Post a Comment