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.8.0.tar.gz (433.3 kB view details)

Uploaded Source

Built Distribution

HTTPolice-0.8.0-py2.py3-none-any.whl (138.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for HTTPolice-0.8.0.tar.gz
Algorithm Hash digest
SHA256 56d565861776aab41875c4fbe6d476c4228bc3ae8b16a822380308bf923c5f76
MD5 ba65021ba755fd6f36314b4a06b9a1f6
BLAKE2b-256 d5c6633ecb9d87cd50180ef74936b7017a5a6b3e28fdeed2cfffb284c5c6c71d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HTTPolice-0.8.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 138.8 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/40.8.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.6.7

File hashes

Hashes for HTTPolice-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 10c2d20d9f996210cdb2a04f8f9841ff13aa1ad611627d1e373cc70d7101252e
MD5 38e9293f7648a7b7c0168a83c10e3a19
BLAKE2b-256 fa52841f56cd6f7df1a115a6e575b6118bd96b614b53601ff1f358dafda5823b

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