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 library (for Python 2.7 and 3.4+), with optional Django integration. There is also 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.7.0.tar.gz (421.8 kB view details)

Uploaded Source

Built Distribution

HTTPolice-0.7.0-py2.py3-none-any.whl (140.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: HTTPolice-0.7.0.tar.gz
  • Upload date:
  • Size: 421.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for HTTPolice-0.7.0.tar.gz
Algorithm Hash digest
SHA256 cdb9fb7b7051c8736f850612c6d5c6572983ab2dc19b69e49407c226e6a9a2c7
MD5 2e46549aa04a62563f39b7a72031c559
BLAKE2b-256 ba2aad75609b50455923edaef096e4ac1cbbd83f9be29514479c623a48c9f4c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for HTTPolice-0.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 33218d5c6826e6c5a90add85e8b0fba4c865ac788dbfdafdf78fcf53885432cb
MD5 a48a0053134d7156adedafd5bb213044
BLAKE2b-256 a925370ff85dbd6f67a4a0e3059c306d54e928ef666c7523bceaabbce4a3d8b4

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