SHARE

Curl is a tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, TELNET, DICT, FILE and LDAP. Curl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, kerberos, HTTP form based upload, proxies, cookies, user+password authentication, file transfer resume, http proxy tunneling and a busload of other useful tricks.

Dependencies:
– Cygwin
– OpenSSL 0.9.6b-2+

Read more:
How to install cygwin
How to add packages after install Cygwin

Installation

apt-cyg install curl

cygwin install curl

Result:

Administrator@MRNC-N9NJM89QFO ~
$ apt-cyg install curl
Installing curl
--2016-08-20 11:03:24--  http://cygwin.mirror.constant.com//x86_64/release/curl/                                                                                                                curl-7.49.0-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.8                                                                                                                3|:80... failed: Connection timed out.
Retrying.

--2016-08-20 11:03:47--  (try: 2)  http://cygwin.mirror.constant.com//x86_64/release/curl/curl-7.49.0-1.tar.xz
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 284188 (278K) [application/octet-stream]
Saving to: ‘curl-7.49.0-1.tar.xz’

curl-7.49.0-1.tar.xz                            100%[=======================================================================================================>] 277,53K  40,4KB/s    in 6,9s

2016-08-20 11:03:55 (40,4 KB/s) - ‘curl-7.49.0-1.tar.xz’ saved [284188/284188]

curl-7.49.0-1.tar.xz: OK
Unpacking...
Package curl requires the following packages, installing:
cygwin libcurl4 libmetalink3 libopenssl100 zlib0
Package cygwin is already installed, skipping
Installing libcurl4
--2016-08-20 11:03:55--  http://cygwin.mirror.constant.com//x86_64/release/curl/libcurl4/libcurl4-7.49.0-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 191820 (187K) [application/octet-stream]
Saving to: ‘libcurl4-7.49.0-1.tar.xz’

libcurl4-7.49.0-1.tar.xz                        100%[=======================================================================================================>] 187,32K  26,3KB/s    in 73s

2016-08-20 11:05:10 (2,55 KB/s) - ‘libcurl4-7.49.0-1.tar.xz’ saved [191820/191820]

libcurl4-7.49.0-1.tar.xz: OK
Unpacking...
Package libcurl4 requires the following packages, installing:
ca-certificates cygwin libgssapi_krb5_2 libidn11 libnghttp2_14 libopenldap2_4_2 libopenssl100 libpsl5 libssh2_1 zlib0
Package ca-certificates is already installed, skipping
Package cygwin is already installed, skipping
Package libgssapi_krb5_2 is already installed, skipping
Package libidn11 is already installed, skipping
Installing libnghttp2_14
--2016-08-20 11:05:11--  http://cygwin.mirror.constant.com//x86_64/release/nghttp2/libnghttp2_14/libnghttp2_14-1.7.1-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46428 (45K) [application/octet-stream]
Saving to: ‘libnghttp2_14-1.7.1-1.tar.xz’

libnghttp2_14-1.7.1-1.tar.xz                    100%[=======================================================================================================>]  45,34K  51,5KB/s    in 0,9s

2016-08-20 11:05:13 (51,5 KB/s) - ‘libnghttp2_14-1.7.1-1.tar.xz’ saved [46428/46428]

libnghttp2_14-1.7.1-1.tar.xz: OK
Unpacking...
Package libnghttp2_14 requires the following packages, installing:
cygwin
Package cygwin is already installed, skipping
Installing libopenldap2_4_2
--2016-08-20 11:05:13--  http://cygwin.mirror.constant.com//x86_64/release/openldap/libopenldap2_4_2/libopenldap2_4_2-2.4.42-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 144820 (141K) [application/octet-stream]
Saving to: ‘libopenldap2_4_2-2.4.42-1.tar.xz’

libopenldap2_4_2-2.4.42-1.tar.xz                100%[=======================================================================================================>] 141,43K  54,1KB/s    in 2,6s

2016-08-20 11:05:16 (54,1 KB/s) - ‘libopenldap2_4_2-2.4.42-1.tar.xz’ saved [144820/144820]

libopenldap2_4_2-2.4.42-1.tar.xz: OK
Unpacking...
Package libopenldap2_4_2 requires the following packages, installing:
cygwin libopenssl100 libsasl2_3
Package cygwin is already installed, skipping
Package libopenssl100 is already installed, skipping
Installing libsasl2_3
--2016-08-20 11:05:17--  http://cygwin.mirror.constant.com//x86_64/release/cyrus-sasl/libsasl2_3/libsasl2_3-2.1.26-9.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 132856 (130K) [application/octet-stream]
Saving to: ‘libsasl2_3-2.1.26-9.tar.xz’

libsasl2_3-2.1.26-9.tar.xz                      100%[=======================================================================================================>] 129,74K  54,9KB/s    in 2,4s

2016-08-20 11:05:20 (54,9 KB/s) - ‘libsasl2_3-2.1.26-9.tar.xz’ saved [132856/132856]

libsasl2_3-2.1.26-9.tar.xz: OK
Unpacking...
Package libsasl2_3 requires the following packages, installing:
cygwin libcrypt0 libdb5.3 libgssapi_krb5_2 libkrb5_3 libopenldap2_4_2 libopenssl100
Package cygwin is already installed, skipping
Package libcrypt0 is already installed, skipping
Installing libdb5.3
--2016-08-20 11:05:20--  http://cygwin.mirror.constant.com//x86_64/release/db/libdb5.3/libdb5.3-5.3.21-1.tar.bz2
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 925021 (903K) [application/octet-stream]
Saving to: ‘libdb5.3-5.3.21-1.tar.bz2’

libdb5.3-5.3.21-1.tar.bz2                       100%[=======================================================================================================>] 903,34K   143KB/s    in 7,6s

2016-08-20 11:05:29 (119 KB/s) - ‘libdb5.3-5.3.21-1.tar.bz2’ saved [925021/925021]

libdb5.3-5.3.21-1.tar.bz2: OK
Unpacking...
Package libdb5.3 requires the following packages, installing:
cygwin libgcc1 libstdc++6
Package cygwin is already installed, skipping
Package libgcc1 is already installed, skipping
Package libstdc++6 is already installed, skipping
Package libgssapi_krb5_2 is already installed, skipping
Package libkrb5_3 is already installed, skipping
Package libopenldap2_4_2 is already installed, skipping
Package libopenssl100 is already installed, skipping
Package libopenssl100 is already installed, skipping
Package libpsl5 is already installed, skipping
Installing libssh2_1
--2016-08-20 11:05:41--  http://cygwin.mirror.constant.com//x86_64/release/libssh2/libssh2_1/libssh2_1-1.7.0-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 114940 (112K) [application/octet-stream]
Saving to: ‘libssh2_1-1.7.0-1.tar.xz’

libssh2_1-1.7.0-1.tar.xz                        100%[=======================================================================================================>] 112,25K  68,5KB/s    in 1,6s

2016-08-20 11:05:43 (68,5 KB/s) - ‘libssh2_1-1.7.0-1.tar.xz’ saved [114940/114940]

libssh2_1-1.7.0-1.tar.xz: OK
Unpacking...
Package libssh2_1 requires the following packages, installing:
cygwin libopenssl100 zlib0
Package cygwin is already installed, skipping
Package libopenssl100 is already installed, skipping
Package zlib0 is already installed, skipping
Package zlib0 is already installed, skipping
Installing libmetalink3
--2016-08-20 11:05:44--  http://cygwin.mirror.constant.com//x86_64/release/libmetalink/libmetalink3/libmetalink3-0.1.2-1.tar.bz2
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17435 (17K) [application/octet-stream]
Saving to: ‘libmetalink3-0.1.2-1.tar.bz2’

libmetalink3-0.1.2-1.tar.bz2                    100%[=======================================================================================================>]  17,03K  55,4KB/s    in 0,3s

2016-08-20 11:05:44 (55,4 KB/s) - ‘libmetalink3-0.1.2-1.tar.bz2’ saved [17435/17435]

libmetalink3-0.1.2-1.tar.bz2: OK
Unpacking...
Package libmetalink3 requires the following packages, installing:
cygwin libexpat1
Package cygwin is already installed, skipping
Installing libexpat1
--2016-08-20 11:05:45--  http://cygwin.mirror.constant.com//x86_64/release/expat/libexpat1/libexpat1-2.1.1-2.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47540 (46K) [application/octet-stream]
Saving to: ‘libexpat1-2.1.1-2.tar.xz’

libexpat1-2.1.1-2.tar.xz                        100%[=======================================================================================================>]  46,43K  54,4KB/s    in 0,9s

2016-08-20 11:05:47 (54,4 KB/s) - ‘libexpat1-2.1.1-2.tar.xz’ saved [47540/47540]

libexpat1-2.1.1-2.tar.xz: OK
Unpacking...
Package libexpat1 requires the following packages, installing:
cygwin
Package cygwin is already installed, skipping
Package libopenssl100 is already installed, skipping
Package zlib0 is already installed, skipping
Running /etc/postinstall/libsasl2_3.sh
Package curl installed

Done, check if curl is install correctly

$ curl --version
curl 7.49.0 (x86_64-unknown-cygwin) libcurl/7.49.0 OpenSSL/1.0.2h zlib/1.2.8 libidn/1.29 libpsl/0.13.0 (+libidn/1.29) libssh2/1.7.0 nghttp2/1.7.1
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets Metalink PSL

NO COMMENTS