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

Uploaded Source

Built Distribution

HTTPolice-0.6.0-py2.py3-none-any.whl (139.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for HTTPolice-0.6.0.tar.gz
Algorithm Hash digest
SHA256 18c1c26c38cc280064202882dbd5a6b72359d645e2f0014c6097f86eca5cc011
MD5 3fe1346e51325894a440d13364f6c4d5
BLAKE2b-256 be7fb37cb19886c26302edfe89b339f2c99d3ee7e0f8ee9f3fff204f0b748fc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for HTTPolice-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 022f420b564425483ed8111b987931a3de7f82c3eee01cf8235486e72bc4703e
MD5 a59c45a8d85a6123648d754313999714
BLAKE2b-256 45d2237989e9d267d8c35023d30b46ac37949f2e610c51f639dcfe4cdcc77363

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