Curl For Windows

An unofficial mirror of the curl library with support for static linking on Windows.
Alternatives To Curl For Windows
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Curl28,8297320 hours ago30May 11, 202296otherC
A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. libcurl offers a myriad of powerful features
Everything Curl1,677
20 days agocc-by-4.0Perl
The book documenting the curl project, the curl tool, libcurl and more. Simply put: everything curl.
Restclient Cpp1,412
6 months ago28mitC++
C++ client for making HTTP/REST requests
Curb1,2693,6665753 months ago71April 29, 202224otherC
Ruby bindings for libcurl
Curl Rust902722258a month ago95March 12, 202245mitRust
Rust bindings to libcurl
Isahc6142011114 days ago43May 13, 202234mitRust
The practical HTTP client that is fun to use.
Node Libcurl5621311363 months ago82January 29, 202232mitTypeScript
libcurl bindings for Node.js
Curlcpp542
5 months ago3July 15, 20182mitC++
An object oriented C++ wrapper for CURL (libcurl)
Curl For Win541
a day agomitShell
Reproducible curl binaries for Windows
Curl Android Ios513
3 years ago13C
Static libcurl to be used in Android and iOS apps. Build scripts included. No Android source required
Alternatives To Curl For Windows
Select To Compare


Alternative Project Comparisons
Readme

Curl for windows

Curl is a command line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software.

About

This is repo is mostly being used by the Node.js native addon node-libcurl

This was originally a fork of the project peters/curl-for-windows

This repository is a collection of dependencies that curl need to build successfully. Each submodule tries to track the latest known git release tag. When not using a git submodule for the dependency, the direct source code was added to this repository, this is the case for nghttp2, openssl, and cares, for these, their .gyp files were retrieved from the Node.js source code.

Both x86 and x64 builds are supported.

libcurl dependencies

Prerequisites

Obtaining prerequisites

$ git clone https://github.com/JCMais/curl-for-windows.git
$ git submodule update --init --recursive

Configuration options

$ python configure.py --help
Usage: configure.py [options]

Options:
  -h, --help            show this help message and exit
  --toolchain=TOOLCHAIN
                        msvs toolchain to build for. [default: auto]
  --target-arch=TARGET_ARCH
                        CPU architecture to build for. [default: x86]

Generate project files

$ python configure.py 

Open respective curl.sln found in out folder ;)

Simple curl example

If you are new to curl you can checkout the example project found in curl.sln or you can view additional the examples in the official curl repository.

Linking with libcurl (without gyp)

  • Add preprocessor flag

    • CURL_STATICLIB
  • Add include directory

    • path/to/curl/include
  • Add additional library search directory

    • path/to/out/Debug|Release/obj
  • Link with the following libraries

    • libcurl.lib
    • openssl.lib
    • libssh2.lib
    • brotli.lib
    • cares.lib
    • zlib.lib
    • wsock32.lib
    • wldap32.lib
    • ws2_32.lib

The following libraries are available here, but not being used (yet):

  • nghttp3
  • ngtcp2

By now you should have sweet, statically linked, CURL! ;)

Contributing

Upgrading libcurl

  1. Download the zip archive from the latest tag from the curl official repo curl/curl
  2. Compare the contents of the extracted sources with the ones at the curl folder on this repo. (I recommend bcompare for that or any other tool that can compare folder contents)
  3. Make necessary changes to the curl.gyp file.

    For example, if a lib/src file was removed/added on the new version, it must be removed/added on the curl.gyp file at the specific target

  4. After changes are made, cd into the curl directory and run:
    $ git fetch origin
    $ git checkout <curl-tag-version>
    

Upgrading libssh2

Same than libcurl

Upgrading nghttp2

nghttp2 is based on Node.js version: https://github.com/nodejs/node/tree/v17.x/deps/nghttp2

At the time of writing this, the upgrade process was as easy as:

  1. copy the folder over.
  2. on nghttp2/nghttp2.gyp:
    1. Comment:
          'msvs_settings': {
            'VCCLCompilerTool': {
              'CompileAs': '1'
            },
          },
      
  3. done.

Upgrading OpenSSL

OpenSSL is based on Node.js version: https://github.com/nodejs/node/tree/v17.x/deps/openssl

At the time of writing this, the upgrade process was as easy as:

  1. copy the folder over.
  2. Replace <(PRODUCT_DIR_ABS)/ with <(PRODUCT_DIR)/.
  3. done.

Upgrading c-ares

c-ares is based on Node.js version: https://github.com/nodejs/node/tree/v17.x/deps/cares

At the time of writing this, the upgrade process was as easy as:

  1. copy the folder over.
  2. done.

Upgrading brotli

brotli is based on Node.js version: https://github.com/nodejs/node/tree/v17.x/deps/brotli

At the time of writing this, the upgrade process was as easy as:

  1. copy the folder over.
  2. done.

Upgrading nghttp3

nghttp3 is based on Node.js version: https://github.com/nodejs/node/tree/v17.x/deps/nghttp3

At the time of writing this, the upgrade process was as easy as:

  1. copy the folder over.
  2. done.

Upgrading ngtcp2

ngtcp2 is based on Node.js version: https://github.com/nodejs/node/tree/v17.x/deps/ngtcp2

At the time of writing this, the upgrade process was as easy as:

  1. copy the folder over.
  2. done.
Popular Curl Projects
Popular Libcurl Projects
Popular Networking Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C
Curl
Libcurl