curl command for MoonX.
moonx cli/curl@0.2.5 [options...] <url>| Option | Description |
|---|---|
| -s, --silent | silent mode |
| -S, --show-error | show errors with --silent |
| -f, --fail | fail on HTTP response codes >= 400 |
| -o, --output <file> | write to file instead of stdout |
| -O, --remote-name | use the remote file name |
| -J, --remote-header-name | use Content-Disposition with -O |
| -L, --location | follow redirects |
| --max-redirs <num> | maximum redirects (default 50) |
| -I, --head | show 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-connrefused | retry connection refused failures |
| --retry-all-errors | retry 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, --insecure | allow insecure TLS connections |
| -x, --proxy <url> | use this proxy |
| --noproxy <list> | bypass proxy for matching hosts |
| --remove-on-error | remove opened output after final failure |
| -O -J | creates valid Content-Disposition filenames exclusively for 2xx/3xx. |
| -sS | keeps each failed attempt's error visible even if a later retry succeeds. |
| --help / --version | Show help / package version. |
moonx cli/curl@0.2.5 https://example.com/
moonx cli/curl@0.2.5 -L -o page.html https://example.com/