Skip to content

Instantly share code, notes, and snippets.

@nasbench
Created March 20, 2024 02:17
Show Gist options
  • Select an option

  • Save nasbench/ca6ef95db04ae04ffd1e0b1ce709cadd to your computer and use it in GitHub Desktop.

Select an option

Save nasbench/ca6ef95db04ae04ffd1e0b1ce709cadd to your computer and use it in GitHub Desktop.
Nscrurl Full Help
Usage: nscurl [options...] <URL>
Options:
-h --help Display help message
-bg --background Use the background transfer
API to execute the request
--discretionary Marks the transfer as
discretionary (only has an
effect if --background is
passed)
-D --dump-header [ARG] Write the response headers to
the specified file (pass '-'
for stdout)
-o --output [ARG] Write the response data to
the specified file (pass '-'
for stdout)
-i --include Include response headers in
output
-L --location Instruct nscurl to follow
redirects (this is the
default behavior)
--ignore-location Instruct nscurl to ignore
redirects
-H --header [ARG] Specify an additional HTTP
Header ("X-Header-Name:
Value")
-A --user-agent [ARG] Specify the User-Agent string
-u --user [ARG] Specify a username and
password <user:password>
-dl --download Download the resource using a
download task
-dir --download-directory [ARG] Download the resource into
the specified directory
-T --upload [ARG] Upload the specified file
(with HTTP PUT request
-SU --streamed Use a streamed upload instead
of a file upload, when
--upload is passed
-k --insecure Disable cert checking when
using TLS
-ld --large-download Use 'large-download'
properties
--bg-traffic-class Use SO_TC_BK traffic class
-m --max-time [ARG] Timeout in seconds for the
entire request
--window-delay [ARG] Conditional connection window
delay for request
--window-duration [ARG] Conditional connection window
duration for request
-M --method [ARG] Set the HTTP method for the
request
-G --get Send a GET request
-I --head Send a HEAD request
--post Send a POST request
--put Send a PUT request
-r --range [ARG] Specify a byte range
--no-expensive Disallow the use of expensive
networks
--no-constrained Disallow the use of
constrained networks
--start-timeout [ARG] Sets a timeout on starting
the request (expressed in
seconds from now)
--fast-connect-timeout Fail quickly if the server is
unreachable
--payload-transmission-timeout [ARG] Sets a timeout on payload
transmission
post-connection-establishment
-v --verbose Verbose output
--ats-diagnostics Display ATS diagnostic
information for URL
--fingerprint Display fingerprint of URL
TLS configuration
--ats-tls-version [ARG] Minimum TLS version used for
ATS configuration. Allowed
values: TLSv1.0, TLSv1.1,
TLSv1.2, or TLSv1.3
--ats-disable-pfs Do not require Perfect
Forward Secrecy for ATS
configuration
-ec --effective-configuration Exercise effective
configuration
--effective-configuration-dump [ARG] Write effective configuration
to plist
--effective-configuration-read [ARG] Read effective configuration
from plist
--http3 Enable HTTP/3
--http3-prior-knowledge Enable HTTP/3 racing without
service discovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment