h2spec is a conformance testing tool for HTTP/2 implementation.
This tool is compliant with RFC 7540 (HTTP/2).
Go to the releases page, find the version you want, and download the zip file.
- Make sure you have go 1.4 and set GOPATH appropriately
- Clone this repo and move to the cloned repo directory
- Run
go get github.com/bradfitz/http2
- Run
go build cmd/h2spec.go
$ h2spec --help
Usage: h2spec [OPTIONS]
Options:
-p: Target port. (Default: 80 or 443)
-h: Target host. (Default: 127.0.0.1)
-t: Connect over TLS. (Default: false)
-k: Don't verify server's certificate. (Default: false)
-o: Maximum time allowed for test. (Default: 2)
-s: Section number on which to run the test. (Example: -s 6.1 -s 6.2)
-S: Run the test cases marked as "strict".
--version: Display version information and exit.
--help: Display this help and exit.