gh2c
go语言实现的http2拨测工具
获取
git clone https://github.com/yiekue/gh2c.git
编译
cd gh2c
go build -o gh2c gh2c.go
使用
查看帮助信息
*[master][~/code/gh2c]$ ./gh2c -help
Usage: ./gh2c -[flags] url
-H string
custom headers
-HKVsep string
used for split a custom header key and value (default ":")
-Hsep string
used for split custom headers (default ";")
-body
output response body
-debug
print debug info
-help
print help info
-host string
custom Host to override default (default "defaltHost")
-method string
http method, GET/POST... (default "GET")
-v int
http version 1/2 (default 2)
-verifyCert
enable verification of the server certificate
使用http2发起请求,默认只会打印头信