Report the HTTP status codes for GET and POST requests
Project description
About
Status is a command line application that returns the HTTP response status code for a GET or POST request to a user submitted URL. It has been tested in cPython 2.7, 3.2, 3.3 and pypy 2.2.1 (Python v2.7.3)
Install
You can install status from PyPI with pip using the following command:
pip install status
or download the source repository and run the following command in the top level source directory:
python setup.py install
Usage
status will report the returned status code with a GET or POST request. The general syntax is:
status [option] <url>
It is not necessary to include the protocol (http://) in your URL. If you enter a URL without the protocol, status will prefix it with http://. If you intend to test with the secure HTTP protocol (https://), then make this explicit in your URL.
GET Request Status Codes
GET is the default request type. Enter the URL as an argument to status without an option:
status <url>
POST Request Status Codes
To use a POST request, add the -p or --post option:
status -p <url>
Versions
v.0.2.4 - unfreeze Naked framework version dependency
v0.2.3 - updated Naked framework dependency
v0.2.2 - minor fixes, documentation updates
v0.2.1 - exception handling for HTTP connection errors, help documentation updates
v0.2.0 - first production release
v0.1.x - testing releases
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for status-0.2.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8e53d4dc414cc391ee2a12396de955695b10cbb756a06c329c90c9286a14486 |
|
MD5 | 74a03be3846c81b31df23e02d9d67fcf |
|
BLAKE2b-256 | 081aa2b66d8179a145182be64ebaaab230c07d7084c94c11c3a549d51935d6ea |