Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Python command-line utility that issues HTTP POST commands.


./ [-h] url data [header]
  • url: the URL
  • data: either raw data to post as the request body or the path to a file to read containing this data
  • header (optional): either JSON to post as the request header or the path to a file to read containing header JSON

The response code and anything else returned by the server will be sent to the console.

Optional Flags

  • -j/--json: Helpfully adds {"Content-Type": "application/json"} to the header
  • -n/--no-verify: Skips SSL certificate verification


You'll need to install requests.


$ ./ test.json
Response: 200
$ ./ test.json
Response: 404
$ ./ '{"username": ""}' -j
Response: 204

The last example above is equivalent to:

$ ./ '{"username": ""}' '{"Content-Type": "application/json"}'
Response: 204

License Information

Written by Gem Newman. Website | GitHub | Twitter

This work is licensed under the Mozilla Public License 2.0.

Remember: GitHub is not my CV.