wget

    wget command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.5
    License
    Apache-2.0
    Last updated
    10 hours ago
    Downloads
    114

    #wget

    Download HTTP and HTTPS resources for MoonX.

    moonx cli/wget@0.2.5 [OPTION]... [URL]...

    #Supported scope

    Download URLs or URL lists with resume, conditional requests, headers/bodies, retries, redirects, Basic authentication and cookies.

    #Options

    OptionDescription
    -q, --quietquiet (no output)
    -O, --output-document=FILEwrite documents to FILE
    -o, --output-file=FILElog messages to FILE
    -a, --append-output=FILEappend messages to FILE
    -i, --input-file=FILEdownload URLs found in FILE
    -c, --continueresume after the already written prefix
    -N, --timestampingdo not re-retrieve unchanged files
    -t, --tries=NUMBERset number of retries (0 means unlimited)
    --retry-connrefusedretry even if the connection is refused
    --retry-on-http-error=CODESretry comma-separated HTTP status codes
    --waitretry=SECONDSwait between retries
    --max-redirect=NUMBERmaximum redirects (default 20)
    --content-dispositionhonor Content-Disposition filenames
    --header=STRINGinsert STRING among request headers
    --user=USERHTTP Basic user name
    --password=PASSWORDHTTP Basic password
    --auth-no-challengesend Basic credentials on every request, including redirects
    --load-cookies=FILEload a Netscape cookie jar
    --header='Cookie: ...'override jar cookies, including on redirects
    --save-cookies=FILEsave persistent cookies
    --keep-session-cookiesalso save session cookies
    --no-cookiesdisable cookie storage
    --method=HTTPMethoduse a supported HTTP method
    --body-data=STRINGsend STRING with an explicit --method
    --body-file=FILEsend FILE with an explicit --method
    --no-check-certificatedisable TLS certificate verification
    --no-proxydo not use proxy environment variables
    -T, --timeout=SECONDSset connect and read timeouts
    --connect-timeout=SECONDSset connection timeout
    --read-timeout=SECONDSset response inactivity timeout
    --idle-timeout=SECONDSextension: response inactivity timeout
    --help / --versionShow help / package version.

    #Limitations

    • Recursive mirroring, FTP, non-Basic authentication, HSTS and timestamp restoration are unsupported.
    • Content-encoded bodies remain encoded. Consumed stdin request bodies cannot be replayed.
    • Resume retains prior bytes without proving the server's earlier prefix is unchanged. Public-suffix and IDNA cookie handling are unsupported.

    #Examples

    moonx cli/wget@0.2.5 -O page.html https://example.com/ moonx cli/wget@0.2.5 -q -O - https://example.com/

    WgetUsageError

    type WgetUsageError

    WgetOptions

    type WgetOptions

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io