Download files and verify checksum.
Downloads a file an optionally verifies it's MD5 or SHA256 checksum.
Usage
fetch -L $SOME_URL --sha256 $SHA256_SUM
The command line options for fetch are compatible with the widely curl command. A wide variety of options are available yet. If you want to use an option that is still missing, please leave an issue at the project's Github repository.
Features
- curl-inspired API
- check SHA256 or MD5 checksum during download
- multiple HTTP methods (GET, PUT, POST, and more)
- upload data from local file
- specify timeouts
- specify TLS version to use
Limitations of snap version
The snap version is only able to write files in the current users home directory. To overcome this limitation, either pipe the output of fetch to the desired file or install the .deb package provided on the project's Github repository.