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, string }add http header fields
check-certificateenum (no | yes | yes-without-crl)https certificate validation
certificateenum
addressalt { address (flags=46vi) , ipAddr }
src-addressalt { ipAddr , 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 { time [1 .. 604800] , 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)
Read-only ArgumentTypeDescription
statusenum (none | connecting | requesting | downloading | uploading | finished | failed)
codenum
downloadednum
uploadednum
totalnum
durationtime
datastring
http-headersobject { super { string , : string } { string , : string } }