How to use the curl command under Windows?

  
                  

Recently, some netizens asked the author a technical professional question about the use of Linux system commands. How to use the curl command under Windows? Here is the information compiled by the author and shared with interested friends!

First of all, to understand what is the curl command, what to do?

linux curl is a file transfer tool that works with the URL rules on the command line. It supports file uploading and downloading, so it is a comprehensive transfer tool, but traditionally, it is customary to call url a download tool.

curl is not a double-click to run, you need to use it at the command prompt

How to enter the command prompt Click “Start”——“Run”&mdash ;—Enter CMD

or,WIN+R, enter CMD

After downloading the CURL of my download version, unzip the folder in a folder like D:\\curl ( Curl path)

Enter "d:" in the command prompt window, then enter “cd curl” to jump to the curl folder,

Command (according to your curl analogy) or you can also add curl to the system environment variable how to add the folder where curl is added to the system variable Right click on "My Computer" ”——“Properties”— —“Advanced”——“Environment Variable”——

“System Variables”——“Path”——“Edit” ——Add“;D:\\curl”(note the semicolon,

D:\\curl to your curl path)——&ldqu o; OK & rdquo; can be directly run in the command prompt after adding to the system environment variables such as

“curl -O http://curl.haxx.se/download/curl-7.19.5-win32 -ssl-sspi.zip”

Such a command does not require access to the curl command in the folder where curl is located!

Example Demo:

curl is a small tool that is included in the general Linux distribution. This tool can be used to download files conveniently. I generally use this tool to view a certain page. HTTP header information, we can use this tool in Windows system. If you do not need to support https, then download an executable file directly. There is a download link under Windows at the bottom of this page. Please choose not to have SSL. Version,

Otherwise you will need to install the SSL support package.

After decompressing, execute curl.exe directly (if you can't run it directly, please use cmd to execute the curl.exe program), such as changing the file to disk C:\\curl\\curl.exe. The cmd console is C:\\curl\\curl.exe --help

If you need to execute curl directly from cmd, you can put the curl.exe file into the C:\\WINDOWS\\system32 directory!

Copyright © Windows knowledge All Rights Reserved