Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zjx20/justget
A simple HTTP proxy server for downloading single file
https://github.com/zjx20/justget
Last synced: about 1 month ago
JSON representation
A simple HTTP proxy server for downloading single file
- Host: GitHub
- URL: https://github.com/zjx20/justget
- Owner: zjx20
- Created: 2016-06-08T12:18:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-23T06:09:16.000Z (about 8 years ago)
- Last Synced: 2024-10-28T13:32:12.847Z (3 months ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
justget
=======# Usage
## Server side:
```shell
go install github.com/zjx20/justget# Start the server
$GOPATH/bin/justget
``````
Usage of justget:
-addr string
Server listen ip (default "0.0.0.0")
-cert string
TLS certificate
-key string
TLS certificate private key
-port int
Server listen port (default 8123)
-tls-port int
Server listen port for TLS (default 8124)
```Thanks to the powerful `http.Client` in Golang, you can easily specify a parent proxy for `justget` via the `HTTP_PROXY` env variable. That makes it possible to extend the functionality of `justget` (e.g. caching) by using other mature HTTP proxy server such as [Polipo](https://www.irif.univ-paris-diderot.fr/~jch/software/polipo/).
## Client side:
```shell
# Note: the "url" parameter should be urlencoded
curl http://your_justget_server:8123/?url=http%3A%2F%2Fwww.google.com%2F
```or
```shell
URL=http://www.google.com/
BASE64URL=$( echo -n "${URL}" | base64 | python -c "import urllib; import sys; sys.stdout.write(urllib.quote_plus(sys.stdin.read()))" )
curl http://your_justget_server:8123/?base64Url=${BASE64URL}
```It's recommended to use the "base64Url" parameter instead of the "url" parameter, for better obfuscation.