curl

    curl command for MoonX.

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

    #curl

    Transfer HTTP and HTTPS data for MoonX.

    moonx cli/curl@0.2.5 [options...] <url>

    #Supported scope

    Send requests, upload files, follow redirects, manage cookies, retry failures and write responses to stdout or files.

    #Options

    OptionDescription
    -s, --silentsilent mode
    -S, --show-errorshow errors with --silent
    -f, --failfail on HTTP response codes >= 400
    -o, --output <file>write to file instead of stdout
    -O, --remote-nameuse the remote file name
    -J, --remote-header-nameuse Content-Disposition with -O
    -L, --locationfollow redirects
    --max-redirs <num>maximum redirects (default 50)
    -I, --headshow response headers only
    -H, --header <header>pass a custom header to the server
    -u, --user <user:password>HTTP Basic authentication
    -b, --cookie <data\|file>send cookies or load a Netscape jar
    -c, --cookie-jar <file>write a Netscape cookie jar
    -H 'Cookie: ...'send a separate field after stored jar cookies
    -X, --request <method>specify a supported HTTP method
    -d, --data <data>HTTP POST data
    --data-raw <data>HTTP POST data without @ expansion
    --data-binary <data>HTTP POST data without conversion
    --data-urlencode <data>URL-encode HTTP POST data
    -T, --upload-file <file>stream file as an upload
    --retry <num>retry transient failures
    --retry-delay <seconds>wait between retries
    --retry-max-time <secs>maximum time spent retrying
    --retry-connrefusedretry connection refused failures
    --retry-all-errorsretry all transfer errors
    --connect-timeout <secs>maximum connection setup time
    -m, --max-time <seconds>maximum time for one transfer
    --idle-timeout <seconds>extension: inactivity timeout
    -k, --insecureallow insecure TLS connections
    -x, --proxy <url>use this proxy
    --noproxy <list>bypass proxy for matching hosts
    --remove-on-errorremove opened output after final failure
    -O -Jcreates valid Content-Disposition filenames exclusively for 2xx/3xx.
    -sSkeeps each failed attempt's error visible even if a later retry succeeds.
    --help / --versionShow help / package version.

    #Limitations

    • Only HTTP/HTTPS and GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH are supported.
    • Content-encoded responses remain encoded. A redirect cannot rewind consumed stdin uploads.
    • Partial stdout remains after failure; files remain unless --remove-on-error is selected. -O -J does not overwrite an existing selected name.

    #Examples

    moonx cli/curl@0.2.5 https://example.com/ moonx cli/curl@0.2.5 -L -o page.html https://example.com/

    CurlUsageError

    type CurlUsageError

    CurlOptions

    type CurlOptions

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io