How do I use the Curl command under Windows?

Source: Internet
Author: User
Tags curl

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

Linux curl is a file transfer tool that uses URL rules to work at the command line. It supports the uploading and downloading of files, so it is a comprehensive transmission tool, but traditionally, the URL is used as the download tool.

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

How to get to the command prompt

Click "Start"--"run"--input cmd

Or, win+r, enter cmd

After downloading my version of the curl, unpack the folder in such as: D:curl folder (Curl path)

Enter the "D:" entry in the Command Prompt window and enter "CD curl" to jump to the Curl folder.

You can now enter the Curl command (based on your curl analogy) or you can also add curl to the system environment variable how to add Curl folder to the system variable

Right-click "My Computer"--"properties"--"advanced"--"Environment variables"--

System variable--"Path"--"edit"--add ";D: Curl" (Note semicolon,

D:curl replaced by your Curl path)--"OK" is added to the system environment variable to run directly from the command prompt as

"Curl-o Http://curl.haxx.se/download/curl-7.19.5-win32-ssl-sspi.zip"

Such commands do not need to go into the Curl Folder Curl command usage!

Example Demo:

Curl is a common Linux distribution with a small tool, use this tool to easily download files, I generally use this tool to view the corresponding HTTP header information on a page, in the Windows system we can also use this tool, if you do not need to support HTTPS, Then download an executable file directly

The bottom of this page has a download link under Windows, please select the version without SSL,

Otherwise, you will need to install SSL support packs.

After decompression directly executes the Curl.exe can (if cannot run directly, please use the CMD to carry the path to execute Curl.exe program), if will change the file to put in the disk

C:curlcurl.exe. In the cmd console for C:curlcurl.exe--help

If you need to directly execute cmd curl, you can put the Curl.exe file into the C:windowssystem32 directory!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.