Name

DkNet_Std.Http - Download content.

Synopsis

DkNet_Std.Http [OPTION]… URI

Arguments

URI (required)
The `https` URI to be downloaded.

Options

--checksum=CHECKSUM (required)
The checksum to verify the download is correct. either SHA3-256 or SHA-256 CHECKSUM must be The checksum format is <CHECKSUMTYPE>=<VALUE>, like SHA-256=06977504e0a35b6662d952e59c26e730a191478ff99cb27b2b7886d6605ed787..

--connect-timeout=MILLIS
The maximum time to connect in milliseconds. Defaults to unlimited.

--destination-file=VAL (required)
Destination file where the downloaded content will be saved. Any missing parent directories will be created.

--max-time=MILLIS
The maximum time allowed to spend downloading in milliseconds. When this timeout elapses, the download stops no matter what is going on at that moment ... including if it is transferring data. The timeout is reset only if a HTTP 302 Redirection is followed. Defaults to unlimited.

Common options

These options are common to all commands.

--color=WHEN (absent=auto)
Colorize the output. WHEN must be one of auto, always or never.

--help[=FMT] (default=auto)
Show this help in format FMT. The value FMT must be one of auto, pager, groff or plain. With auto, the format is pager or plain whenever the TERM env var is dumb or undefined.

-l LEVEL, --log-level=LEVEL
Set the verbosity of log messages. If the option is repeated the last LEVEL is used. LEVEL must be one of ERROR, WARNING, INFO or DEBUG.

-q, --quiet
Be quiet. Takes precedence over -l and --log-level options.

Exit status

DkNet_Std.Http exits with:

0
on success.

123
on indiscriminate errors reported on standard error.

124
on command line parsing errors.

125
on unexpected internal errors (bugs).

Bugs

Support the project with a GitHub star at https://github.com/diskuv/dk.

Leave feedback or bug reports at https://github.com/diskuv/dk/issues.