问题标签 [nghttp2]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
46 浏览

post - 如何使用 h2load (nghttp2) 测试 POST 请求

我正在使用 h2load (nghttp2) 来测试 PHP 服务的服务器。请求类型应该是 POST。

我使用以下命令,但在服务器中得到错误:

无效请求(格式错误的 HTTP 请求)

文件 post_data 包含字符串:

这个命令有什么问题?

更新 1:

当我将 h2load 用于 GET 请求时,我也得到Invalid request (Malformed HTTP request)了!wrk测试成功。因此,服务器没有问题!

在 gRPC 的情况下 h2load 测试是成功的。