Juicy lil' bytes

Status | Check HTTP Status Codes for GET and POST Requests

Status is an open source command line application that allows you to check HTTP status codes for GET and POST requests.

Install

You can install status with pip using the following command:

1
pip install status

or download the source repository, unpack it, and navigate to the top level directory. Then enter the following:

1
python setup.py install

You can confirm the install by checking that the help displays with the following command:

1
status --help

GET Request Status Codes

GET requests are the default. To check the response status code for a URL, enter the URL as the argument to status:

1
status <url>

You do not need to include the protocol (http://) unless you are interested in testing a URL with the secure http protocol (https://) in which case this needs to be part of the URL.

Here are examples of tests on google.com:

1
2
$ status http://www.google.com
200 : http://www.google.com/
1
2
3
$ status google.com
301 : http://google.com/
200 : http://www.google.com/

Status follows all 300 status range redirects and displays each of the URL with the status codes across these jumps.

POST Request Status Codes

To run a POST request, add the -p or --post option to your command:

1
status -p <url>

Here is an example:

1
2
$ status -p httpbin.org/post
200 : http://httpbin.org/post

Status Help

Help is available with the -h or --help options.

Source Repositories

The source is available on GitHub and PyPI.

Issue Tracking

If you come across a bug, please report it on the GitHub issue tracker.