curl

    curl command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.8
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    195

    #curl

    Transfer HTTP and HTTPS data through MoonX.

    #Usage

    moonx cli/curl https://example.com/ moonx cli/curl -L -o page.html https://example.com/ moonx cli/curl -H 'Content-Type: application/json' --data-binary '{"ok":true}' https://example.com/

    Write response bodies to stdout by default. Supports configured headers, Basic authentication, cookies, redirects, retries, uploads and resume in the documented HTTP profile.

    #Common options

    OptionDescription
    -o VALUE, --output VALUEwrite to file instead of stdout
    -L, --locationfollow redirects Default: false.
    -H VALUE, --header VALUEsend custom fields in order, retaining repeats
    -u VALUE, --user VALUEHTTP Basic authentication
    -c VALUE, --cookie-jar VALUEwrite a Netscape cookie jar
    -X VALUE, --request VALUEspecify a supported HTTP method
    -d VALUE, --data VALUEHTTP POST data
    --data-binary VALUEHTTP POST data without conversion
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Protocols other than HTTP(S), non-Basic authentication and password prompts are unsupported. Redirect/replay rules depend on the request body and credential scope.
    • TLS, proxy and network access depend on the launcher and runtime. Full upstream URL/IRI, config and Cookie grammar is not claimed.

    See the compatibility guide for the supported profile.

    Source Files