Skip to content

m-messiah/uwget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uwget

GitHub release Travis Maintainability

Simple tool for get requests to uwsgi socket (by uwsgi protocol)

Usage

uwget [options] uwsgi://host:port/path

Parameters:
  -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

    uwget uwsgi://127.0.0.1:3031
  • Pass HTTP_HOST header for admin

    uwget --host=example.com uwsgi://backend:3031/admin/
  • Use another remote address instead of localhost

    uwget -remote=8.8.8.8 uwsgi://localhost:3031/geo/
  • Ping localhost and fail if not 200

    uwget -q -expected-status=200 uwsgi://127.0.0.1:3031/ping