Skip to main content
Version: current

fetch


tool/fetch

Conditions: arm64
Type: Command

ArgumentTypeDescription
urlstring
outputenum (none | file | user | user-with-headers)where to output data, works for all protocols
http-methodenum (get | post | put | delete | head | patch)
http-auth-schemeenum (basic | digest)
http-datastringPOST or PUT request body data
http-header-fieldmulti { array-id, header-field: string }add http header fields
check-certificateenum (no | yes | yes-without-crl)https certificate validation
certificateenum
addressalt { address: address (flags=46vi) , address: ipAddr }
src-addressalt { ip: ipAddr , ip6: ip6Addr }source address for HTTP, HTTPS only
portnum
modeenum (http | https | ftp | tftp | sftp)
http-content-encodingenum (deflate | gzip)encode payload and add corresponding Content-Encoding header; for HTTP POST and PUT only
ip-typeenum (any | ipv4 | ipv6)
src-pathfile
dst-pathfile
userstring
passwordstring
hoststring
asciiboolftp transfer type
uploadboolftp and tftp transfer direction
keep-resultbooldepracated, use 'output' argument
idle-timeoutalt { idle-timeout: time [1 .. 604800] , idle-timeout: enum (none) { none:0 } }seconds, default 10
http-max-redirect-countnumdefault 0, i.e. no redirects
http-percent-encodingboolpercent-encodes every character in path except for alphanumeric and the following characters: -._~/?^=:
http-versionenum (http1_1 | http2 | http2-forced)
Read-only ArgumentTypeDescription
statusenum (none | connecting | requesting | downloading | uploading | finished | failed)
codenum
downloadednum
uploadednum
totalnum
durationtime
datastring
http-headersobject { http-header: super { key: string , [value] : string } { key: string , [value] : string } }