The curl command can execute an Http request via the command line. There are scenarios where it is used in Elasticsearch, so let's look at how to execute curl commands in windows.
Tool downloadDownload the toolkit on the official website: http://curl.haxx.se/download.html
Usage method 1: Use in curl.exe catalogUnzip the downloaded compressed file and use the cmd command to enter the directory where the curl.exe is located. Since the blogger is using a Windows 64-bit system, curl.exe tools under I386 can be used. Once in the directory, run the curl --help test: Usage method 2: Place it in system32Unzip the downloaded file and copy the I386/curl.exe file to C:WindowsSystem32 Then you can use the curl command anywhere in the DOS window. Usage method 3: Configure environment variablesIn System Advanced Environment Variables, configure CURL_HOME ----- "Your curl directory location curl-7.43.0" path ---- add "; %CURL_HOME%I386” This is the same effect as method 2 above.
http://curl.haxx.se/download.html 一般从国内打不开,需要翻墙,
Win 64-bit curl download:Tourists, if you want to see the hidden content of this post, please Reply
|