negrutiu / nsis-nscurl

NSIS plugin with advanced HTTP/S capabilities
BSD 3-Clause "New" or "Revised" License
26 stars 7 forks source link
curl download http http-client https https-client installer libcurl marius negrutiu nscurl nsis nsis-installer nsis-plugin openssl ssl

NScurl (NSIS plugin)

NScurl is a NSIS (Nullsoft Scriptable Install System) plugin with advanced HTTP/HTTPS capabilities.
It's included in the unofficial NSIS fork.

Implemented in C on top of libcurl with OpenSSL as SSL backend.

License: BSD3 Latest Release Downloads GitHub issues

Features

Basic usage

Check out the Getting Started wiki page.
Check out the documentation page.
Check out the NSIS test script.

; Quick transfer
NScurl::http GET "https://download.sysinternals.com/files/SysinternalsSuite.zip" "$TEMP\SysinternalsSuite.zip" /INSIST /CANCEL /RESUME /END
Pop $0 ; transfer status ("OK" for success)

; Quick transfer with GET parameters and request headers
NScurl::http GET "https://httpbin.org/get?param1=value1&param2=value2" "$TEMP\httpbin_get.json" /HEADER "Header1: Value1" /HEADER "Header2: Value2" /END
Pop $0

; POST json data
NScurl::http POST "https://httpbin.org/post" Memory /HEADER "Content-Type: application/json" /DATA '{"number_of_the_beast":666}' /END
Pop $0

; POST json data as MIME multi-part form
NScurl::http POST "https://httpbin.org/post" Memory /POST "User" "My user name" /POST "Password" "My password" /POST FILENAME=MyFile.json TYPE=application/json "Details" '{"number_of_the_beast":666}' /END
Pop $0

Licenses

Project License
NScurl itself BSD3
brotli MIT
curl MIT/X inspired
nghttp2 MIT
OpenSSL Apache v2
zlib zlib
zstd BSD3