https://github.com/kbrgl/fetch
A simple HTTP GET utility in Go
https://github.com/kbrgl/fetch
Last synced: about 2 months ago
JSON representation
A simple HTTP GET utility in Go
- Host: GitHub
- URL: https://github.com/kbrgl/fetch
- Owner: kbrgl
- License: other
- Created: 2016-07-25T08:43:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-25T07:48:50.000Z (over 5 years ago)
- Last Synced: 2025-01-01T12:12:50.881Z (12 months ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fetch
Fetch is what I use to retrieve files from the internet. I find other tools like wget and curl too complicated; besides, there's a coolness factor in using your own tools to do stuff.
I started out with [The Go Programming Language's](//gopl.io) 'fetch' program and branched out from there, adding shortcuts that I found useful (including the '-x' flag) as well as other common features.
## Usage
```
usage: fetch [flags] [urls]
flags:
-d download contents to a file instead of printing to stdout
-e ignore errors and fetch page on status code != 200
-h show usage
-r don't follow redirects
-x if -d is set, mark the file as executable
```
## Known issues
* **Crappy filename handling** downloaded files have weird filenames when when filename in Content-Disposition is unspecified; I have no idea how to fix this, if you know something I don't, send a pull request