- Как использовать cUrl В Windows 10
- cUrl в Windows 10
- cUrl В Windows 7, 8 / 8.1
- Использование cUrl
- Information Security Squad
- ⌨️ Как установить CURL на Windows 10
- Установите CURL на Windows 10
- 1] Установите Git для Windows
- 2] Загрузите и установите Curl из исходников с сайта.
- 3] CURL установщик
- cURL на Windows
- Установка cURL на Windows
- Скачивание cURL
- How do I install and use cURL on Windows?
- 22 Answers 22
- You might already have curl
- Installing curl with a package manager
- Installing curl manually
- Downloading curl
- Extracting and setting up curl
Как использовать cUrl В Windows 10
cUrl в Windows 10
Если вы хотите использовать cUrl в Windows 10, у вас есть два варианта. Проверьте свою сборку Windows 10, и если у вас есть что-то старше 17063, действуйте следующим образом.
Вам нужно будет скачать cUrl с официального сайта. Версия Windows находится внизу страницы загрузки. Вы хотите загрузить общую версию с застежкой-молнией. Извлеките заархивированный файл и внутри папки bin, вы найдете файл curl.exe. Откройте командную строку в этой папке и запустите любую команду, которую вы хотите.
Так как потребуется много времени, чтобы записывать CD в папку bin каждый раз, когда вы хотите использовать cUrl, рекомендуется добавить путь к вашим переменным среды пути. Это позволит вам запускать cUrl из любого места.
Если ваша сборка Windows 10 — 17063 или более поздняя, cUrl включен по умолчанию. Все, что вам нужно сделать, это запустить командную строку с правами администратора, и вы можете использовать cUrl. Curl.exe находится в C: \ Windows \ System32. Если вы хотите использовать cUrl из любого места, подумайте о его добавлении к переменным среды пути.
cUrl В Windows 7, 8 / 8.1
Использование cUrl
Для старых версий Windows 10 и для Windows 7 и 8 / 8.1 вам нужно сначала cd в папку с cUrl EXE, а затем выполнить команду.
Microsoft предоставляет пользователям множество причин для обновления до Windows 10. В дополнение к добавлению cUrl по умолчанию он также включает в себя Tar сейчас. Tar позволяет создавать архивы и извлекать их, не требуя дополнительных инструментов. Если это недостаточно для обновления, есть и тот факт, что Office 2019 будет работать только на ПК с Windows 10.
Information Security Squad
stay tune stay secure
- Home
- 2019
- Март
- 12
- ⌨️ Как установить CURL на Windows 10
⌨️ Как установить CURL на Windows 10
CURL – это инструмент командной строки и библиотека для передачи данных с URL-адресами.
Он бесплатен, и многие приложения используют его.
В этом руководстве мы расскажем, как установить CURL в Windows.
Несколько удивительно, что он используется в автомобилях, телевизорах, роутерах, принтерах, аудиоаппаратуре, мобильных телефонах, планшетах, телевизионных приставках, медиаплеерах и во многих других местах.
Установите CURL на Windows 10
Начиная с Windows 10 v 1803, ОС теперь поставляется с копией CURL.
Он уже настроен, и вы можете сразу начать его использовать.
Откройте командную строку и введите «curl -help«.
Если ошибок нет и отображаются все параметры curl, он установлен на вашем Windows 10.
Наряду с Curl, Microsoft также выпустила Tar, инструмент командной строки для извлечения файлов и создания архивов.
Если по какой-то причине вы не можете найти CURL, установленный в вашей ОС Windows, вот как установить Curl в Windows.
1] Установите Git для Windows
Скачайте Git для Windows, и он установит CURL вместе в дагонку.
Вы можете найти его установленным в C:\Program Files\Git\mingw64\bin\.
Добавьте его в свой путь Windows, и вы сможете выполнить его из любого места.
Нажмите кнопку запуска и введите системный путь.
Появится опция для редактирования системных переменных.
Нажмите на переменные среды, и вы сможете добавить путь, как указано выше, в системный путь.
2] Загрузите и установите Curl из исходников с сайта.
Если Git не то, что вам нужно, вы можете скачать и установить CURL с официального сайта.
Перейдите сюда и загрузите соответствующий архив для вашей системы (32 или 64 бит).
Если вы хотите загрузить определенные пакеты, посетите страницу пакетов curl.
Здесь вы можете скачать исполняемый файл curl, разработку libcurl, libcurl или исходный код.
Убедитесь, что добавили исполняемый файл к вашему пути.
3] CURL установщик
Если вы предпочитаете установку в один клик, используйте установщик cURL для Windows.
Вы можете скачать его здесь.
Все это установит CURL на Windows.
Если вы разрабатываете что-то или ваше приложение требует CURL для работы на вашем компьютере, руководство вам в помощь.
cURL на Windows
Для программирования с использованием языка HTML рекомендуется иметь как можно более широкий набор инструментов. Один из них – cURL. Он позволяет проводить операции в командной строке с различными адресами формата URL. Но единственный недостаток – возможности реализовать это в Windows после установки самой системы нельзя.
Возможно, у вас уже есть cURL, но это в том случае, если вы – пользователь macOS, ведь это ПО интегрировано в систему и не требует дополнительной установки. Однако, все равно возникает вопрос по поводу добавления возможности работы с URL. «Как установить и использовать cURL на Windows?» — ответ на это можно получить, прочитав данную статью до конца.
Есть 2 типа размещения в системе нового компонента. Для опытных подойдет установка cURL вручную, с указанием всех параметров самостоятельно. Однако, есть и те, кому не хочется заморачиваться насчет этого или нет опыта в установке плагинов для командной строки. Таким людям нужна установка cURL с помощью диспетчера пакетов – упрощенный вариант.
Задевая тему новичков, стоит также отметить, что доступно просмотреть несколько вариантов того, где и как возможно реализовать свои затеи в командной строке. То есть, есть несколько примеров использования команд cURL в режиме реального времени. Для этого посвящены различные видеоролики в сети, где будет все четко описано.
Установка cURL на Windows
Если пользователь имеет последнюю версию ОС, то этот пункт можно пропустить. Достаточно лишь прописать команду «curl -help», и, если ошибок нет, то будут выведены на рабочее поле все возможности команды. То есть, установка cURL на Windows 10 просто не нужна – это ПО поставляется вместе с самой ОС. Таким образом, останется лишь вопрос насчет того, как происходит использование cURL.
В случае, когда установлена Windows 8, 7 и более ранняя версия – здесь уже требуется вмешательство пользователя. Первое и самое легкое – переход на сайт с программным обеспечением, где нужно лишь нажать на кнопку «Download cURL». Проделав далее некоторые действия для установки, кажется, что можно приступать к работе. Однако, это не так.
Последнее действие, которое необходимо сделать – объявить переменную среды для cURL. Без CD в папке bin ничего работать не будет. А потому, следует перейти по следующим «ссылкам» к разделам в Панели управления. То есть, сначала пользователь заходит в раздел «System», далее – «Advanced system settings», во вкладку «Advanced» и нажать на «Environment Variables». Остается лишь сделать задуманное – добавить путь к папке bin. После этого, можно пользоваться cURL.
Скачивание cURL
Чтобы пользоваться ПО в командной строке, загрузите и установите программу cURL с официального сайта. Делается это максимально просто, ведь скачивание cURL такое же, как и в случае с другими программами. Таким образом, загрузив версию cURL для Windows, останется сделать всего лишь ничего. То есть, пользователю нужно будет только провести операции по пункту «извлечение и настройка cURL», которая не составит труда.
How do I install and use cURL on Windows?
I am having trouble getting cURL to run on Windows.
I have downloaded a cURL zip file from here, but it seems to contain source code, not an executable.
Do I need to compile cURL to run it? If yes, then how do I do that?
Where can I find .exe downloads for cURL ?
I have looked for documentation on installing cURL, but there is little to be found.
22 Answers 22
Assuming you got it from https://curl.haxx.se/download.html, just unzip it wherever you want. No need to install. If you are going to use SSL, you need to download the OpenSSL DLLs, available from curl’s website.
You might already have curl
It is possible that you won’t need to download anything:
If you are on Windows 10, version 1803 or later, your OS ships with a copy of curl, already set up and ready to use.
If you have Git for Windows installed (if you downloaded Git from git-scm.com, the answer is yes), you have curl.exe under:
Simply add the above path to PATH .
Installing curl with a package manager
If you are already using a package manager, it may be more convenient to install with one:
- For Chocolatey, run choco install curl
- For MSYS2, run pacman -S curl
- For Scoop, run scoop install curl
- For Cygwin, add the curl package in Cygwin Setup. EDIT by a reader: Cygwin installer design has changed, please choose curl packages as follows:
Installing curl manually
Downloading curl
It is too easy to accidentally download the wrong thing. If, on the curl homepage, you click the large and prominent «Download» section in the site header, and then the large and prominent curl-7.62.0.tar.gz link in its body, you will have downloaded a curl source package, which contains curl’s source code but not curl.exe . Watch out for that.
Instead, click the large and prominent download links on this page. Those are the official Windows builds, and they are provided by the curl-for-win project.
If you have more esoteric needs (e.g. you want cygwin builds, third-party builds, libcurl, header files, sources, etc.), use the curl download wizard. After answering five questions, you will be presented with a list of download links.
Extracting and setting up curl
Find curl.exe within your downloaded package; it’s probably under bin\ .
Pick a location on your hard drive that will serve as a permanent home for curl:
- If you want to give curl its own folder, C:\Program Files\curl\ or C:\curl\ will do.
- If you have many loose executables, and you do not want to add many individual folders to PATH , use a single folder such as C:\Program Files\tools\ or C:\tools\ for the purpose.
Place curl.exe under the folder. And never move the folder or its contents.
Next, you’ll want to make curl available anywhere from the command line. To do this, add the folder to PATH , like this:
- Click the Windows 10 start menu. Start typing «environment».
- You’ll see the search result Edit the system environment variables. Choose it.
- A System Properties window will popup. Click the Environment Variables button at the bottom.
- Select the «Path» variable under «System variables» (the lower box). Click the Edit button.
- Click the Add button and paste in the folder path where curl.exe lives.
- Click OK as needed. Close open console windows and reopen, so they get the new PATH .
Now enjoy typing curl at any command prompt. Party time!
- Download curl zip
- Extract the contents (if you have downloaded the correct version you should find curl.exe)
- Place curl.exe in a folder where you keep your software (e.g. D:\software\curl\curl.exe)
To run curl from the command line
a) Right-hand-click on «My Computer» icon
b) Select Properties
c) Click ‘Advanced system settings’ link
d) Go to tab [Advanced] — ‘Environment Variables’ button
e) Under System variable select ‘Path’ and Edit button
f) Add a semicolon followed by the path to where you placed your curl.exe (e.g. ;D:\software\curl)
Now you can run from the command line by typing:
The simplest tutorial for setting up cURL on Windows is the Making cURL work on Windows 7. It only have 3 easy steps.
Starting with Windows 10 version 1803 (and earlier, with insider build 17063), you don’t install curl anymore. Windows includes a native curl.exe (and tar.exe ) in C:\Windows\System32\ , which you can access right from your regular CMD .
- Download cURL (Win64 ia64 zip binary with SSL)
- Extract curl.exe into » C:\Windows\System32 «
- Done
Even more easier:
Download the Win64 2000/XP x86_64 MSI installer provided by Edward LoPinto.
At the time of writing file curl-7.46.0-win64.exe was the most recent. Tested with Windows 10.
It’s probably worth noting that Powershell v3 and up, contains a cmdlet called Invoke-WebRequest that has some curl-ish capabilities. The New-WebServiceProxy and Invoke-RestMethod cmdlets are probably worth mentioning too.
I’m not sure they will fit your needs or not, but although I’m not a Windows guy, I have to say I find the object approach PS takes, a lot easier to work with than utilities such as curl, wget etc. They may be worth taking a look at
Note also that installing Git for Windows from git-scm.com also installs Curl. You can then run Curl from Git for Windows’ BASH terminal (not the default Windows CMD terminal).
As you already know, you can find several packages of binaries on the official curl website.
Once you download a package, unzip it wherever you want. I recommend adding its location to your path, so you can call curl from batch or powershell scripts. To add a directory to your path type «environment variables» in the start menu, and select «edit user environment variables». Select Path, and add to the end of the «value» box: ;C:\curl\directory (with the directory changed to where you saved curl.)
If you want to use SSL you need a certificate bundle. Run either mk-ca-bundle.pl (perl) or mk-ca-bundle.vbs (VBScript). Some of the packages of binaries include one or both of them. If your download doesn’t include one, download one here: https://github.com/bagder/curl/tree/master/lib. I recommend mk-ca-bundle.vbs, as on windows you simply double click it to run it. It will produce a file called ca-bundle.crt. Rename it curl-ca-bundle.crt and save it in the directory with curl.exe.
Alternatively, I recently developed an msi installer that sets up a full featured build of curl with just a few clicks. It automatically ads curl to your path, includes a ready-to-use ssl certificate bundle, and makes the curl manual and documentation accessible from the start menu. You can download it at www.confusedbycode.com/curl/.
Install Chocolatey package manager for Windows. Once installed, simply enter choco install curl . Then you can use curl from a terminal.
Thought I’d write exactly what I did (Windows 10, 64-bit):
Choose curl executable.
Choose the first recommended option. For me this was:
curl version: 7.53.1 — SSL enabled SSH enabled. Provided by: Viktor Szakáts. This package is type curl executable You will get a pre-built ‘curl’ binary from this link (or in some cases, by using the information that is provided at the page this link takes you). You may or may not get ‘libcurl’ installed as a shared library/DLL. The file is packaged using 7zip. 7zip is a file archiving format.
You should have the file curl-7.53.1-win64-mingw.7z in your downloads folder.
Install 7-Zip if you don’t have it.
Right-click, 7-Zip, Extract Here. Copy and paste the extracted file somewhere like Z:\Tools\
If you look in the bin folder you’ll see curl.exe. If you double-click it a window will quickly flash up and vanish. To run it you need to use the Command Prompt. Navigate to the bin folder and type curl followed by your parameters to make a request. You must use double-quotes. Single quotes won’t work with curl on Windows.
Now you’ll want to add curl to a user’s Path variable so you don’t have to navigate to the right folder to run the program. Go to This PC, Computer, System Properties, Advanced system settings, authenticate as an administrator (you’re not running as admin, right? Right?) Environment Variables, System variables, look at the list and select Path, then Edit, then New, then, e.g.
You can add a trailing backslash if you like, I don’t think it matters. Click move up until it’s at the top of the list, then you can see it easily from the previous screen. Click OK, OK, OK, then crack open a Command Prompt and you can run curl by typing curl from any folder, as any user. Don’t forget your double-quotes.