Skip to main content

Validator for HTTP

Project description

HTTPolice is a validator or “linter” for HTTP requests and responses. It can spot bad header syntax, inappropriate status codes, and other potential problems in your HTTP server or client.

See example report.

As a command-line tool, it can read HAR files or raw HTTP/1.x TCP streams. It can integrate with mitmproxy for TLS-encrypted and HTTP/2 traffic. Or you can use it as a Python (3.4+) library. There is a Django integration package and a third-party Chrome extension.

Start with the quickstart.

A full user manual is available. Also, a list of all problems HTTPolice can detect.

HTTPolice was partly inspired by REDbot, another QA tool for the Web. But the approach is different: instead of actively testing your server, HTTPolice just analyzes anything you feed into it. Thus, it can be used on requests and responses captured from a real process or test suite.

HTTPolice is hosted on GitHub and released under the MIT license (see LICENSE.txt). If you want to hack on HTTPolice, check out HACKING.rst.

BrowserStack kindly provide a free subscription for testing HTTPolice.

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

HTTPolice-0.9.0.tar.gz (346.9 kB view details)

Uploaded Source

Built Distribution

HTTPolice-0.9.0-py2.py3-none-any.whl (138.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file HTTPolice-0.9.0.tar.gz.

File metadata

  • Download URL: HTTPolice-0.9.0.tar.gz
  • Upload date:
  • Size: 346.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.6.7

File hashes

Hashes for HTTPolice-0.9.0.tar.gz
Algorithm Hash digest
SHA256 b49423aa09b42172a8ff7e640e9163eb508dfb06d294a28b3cf79fa5e1671e8b
MD5 b443a223274274c300fbb12fc2c38f5a
BLAKE2b-256 b87b07a3583482e951019952dc7d183eb04ea7b23e4eac9ef2a04b4f83e57065

See more details on using hashes here.

File details

Details for the file HTTPolice-0.9.0-py2.py3-none-any.whl.

File metadata

  • Download URL: HTTPolice-0.9.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 138.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.6.7

File hashes

Hashes for HTTPolice-0.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 49679215717eb287e5a898780eadc45e6b804f78dcfd651c0452c7cfcaae5542
MD5 a2471e98deae9cb79fe10e176a8cb862
BLAKE2b-256 b4ebf2ac56733d62426c69cd57802a3b9f8e6f522a744922004a1ecb1daea80c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page