我正在使用h2load (nghttp2)来测试服务器。请求类型应该是POST。
我使用以下命令,但在服务器中获得错误:
h2load http://192.168.10.190:8009/echoservice/ping \
-d post_data \
-H 'content-type: application/x-www-form-urlencoded' \
-t 12 -c 400 -n1000无效请求(格式错误的HTTP请求)
文件post_data包含字符串:
msg=FromClient这个命令有什么问题?
更新1:
当我将h2load用于GET请求时,我也得到了Invalid request (Malformed HTTP request)!威克测试是成功的。因此,服务器没有问题!
对于gRPC,h2load测试是成功的。
发布于 2022-01-13 07:59:25
使用-H, --header=<HEADER>选项并将:method设置为POST。
-H: ':method: POST'https://stackoverflow.com/questions/70676673
复制相似问题