https://github.com/m-messiah/uwget
UWSGI GET client
https://github.com/m-messiah/uwget
client curl uwsgi
Last synced: about 2 months ago
JSON representation
UWSGI GET client
- Host: GitHub
- URL: https://github.com/m-messiah/uwget
- Owner: m-messiah
- Created: 2016-12-08T11:10:59.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-02-03T11:31:25.000Z (over 3 years ago)
- Last Synced: 2025-03-19T01:06:34.817Z (2 months ago)
- Topics: client, curl, uwsgi
- Language: Go
- Size: 9.77 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# uwget
[](https://github.com/m-messiah/uwget/releases)
[](https://travis-ci.org/m-messiah/uwget)
[](https://codeclimate.com/github/m-messiah/uwget/maintainability)Simple tool for get requests to uwsgi socket (by uwsgi protocol)
## Usage
```bash
uwget [options] uwsgi://host:port/pathParameters:
-host string
HTTP_HOST
-remote string
remote addr (default "127.0.0.1")
-expected-status string
Fail if response status not equal
-q Disable output
```## Examples
+ Get localhost default uwsgi root
```bash
uwget uwsgi://127.0.0.1:3031
```
+ Pass HTTP_HOST header for admin```bash
uwget --host=example.com uwsgi://backend:3031/admin/
```
+ Use another remote address instead of localhost```bash
uwget -remote=8.8.8.8 uwsgi://localhost:3031/geo/
```+ Ping localhost and fail if not 200
```bash
uwget -q -expected-status=200 uwsgi://127.0.0.1:3031/ping
```