Performance 如何在Autocannon中传递标题和x-www-form-urlencoded正文

Performance 如何在Autocannon中传递标题和x-www-form-urlencoded正文,performance,http,performance-testing,wrk,Performance,Http,Performance Testing,Wrk,我试图在POST请求中传递标题和x-www-form-urlencoded body,但我的响应总是: 0个2xx响应,5个非2xx响应 命令行中的示例: autocannon -c 1 -a 5 -H Authorization="Bearer xxxx",Content-Type="application/x-www-form-urlencoded" -b "Key"="Value" http://host.co

我试图在POST请求中传递标题和x-www-form-urlencoded body,但我的响应总是:

0个2xx响应,5个非2xx响应

命令行中的示例:

autocannon -c 1 -a 5 -H Authorization="Bearer xxxx",Content-Type="application/x-www-form-urlencoded" -b "Key"="Value" http://host.com:8080/path

对每个标头使用-H标志,如下所示: autocannon-c 1-a 5-H“授权”:“承载xxxx”-H“内容类型”:“应用程序/x-www-form-urlencoded”-b'{“键”=“值”}”

我认为您应该删除逗号分隔符。标题应为key=value-例如:-H Auth=“Barear blabla”另一个标题=“blabla”