curl build native Windows Schannel

curl is a universal command line tool for network data transfer. Build curl from source on Windows including native TLS support with Visual Studio and CMake. No external libraries are required for SSL using curl native Windows Schannel. The build is done “static” to avoid the hassle of DLL path.

From the Visual Studio Developer Command Prompt, clone the curl repo and build:

git clone https://github.com/curl/curl.git
cd curl

cmake -DCURL_USE_SCHANNEL=on -DBUILD_SHARED_LIBS=off -Bbuild

cmake --build build --config Release

Test the standalone “curl.exe” like:

build/src/Release/curl.exe -L https://hsts.badssl.com/