Validator for HTTP
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.
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|HTTPolice-0.6.0-py2.py3-none-any.whl (139.3 kB) Copy SHA256 Checksum SHA256||py2.py3||Wheel||Aug 2, 2017|
|HTTPolice-0.6.0.tar.gz (361.0 kB) Copy SHA256 Checksum SHA256||–||Source||Aug 2, 2017|