add file read and write to wget

master
Mr. Robot 3 years ago committed by GitHub
parent 710986d94f
commit 073ba53005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,18 @@
"code": "wget --post-file=[file] [url]\n"
}
],
"file-read": [
{
"description": "The file to be read is treated as a list of URLs, one per line, which are actually fetched by 'wget'. The content appears, somewhat modified, as error messages, thus this is not suitable to read arbitrary binary data.",
"code": "wget -i [file]\n"
}
],
"file-write": [
{
"description": "The data to be written is treated as a list of URLs, one per line, which are actually fetched by 'wget'. The data is written, somewhat modified, as error messages, thus this is not suitable to write arbitrary binary data.",
"code": "TF=$(mktemp)\necho [data] > $TF\nwget -i $TF -o [file]\n"
}
],
"file-download": [
{
"description": "Fetch a remote file via HTTP GET request.",
@ -25,4 +37,4 @@
}
]
}
}
}

Loading…
Cancel
Save