【问题标题】:How to pass multiple header in Apache Benchmark如何在 Apache Benchmark 中传递多个标头
【发布时间】:2015-07-05 11:05:04
【问题描述】:

我需要在Apache benchmark 中传递多个标头。

我在 SO 上搜索过,也用谷歌搜索过,但到目前为止还没有运气。

ab -n200 -c100 -H 'clientId:test-client;token:93e6acff-2ef9-4c85-9d0b-c9948a8ee93b' http://127.0.0.1/oauth2/user/client/

【问题讨论】:

  • 如果是 cURL 之类的,您可以多次使用 -H。这是一个带有示例的页面:cyberciti.biz/faq/…

标签: rest header apachebench


【解决方案1】:
ab -n200 -c100 -H "clientId:test-client"-H "token:93e6acff-2ef9-4c85-9d0b-c9948a8ee93b" -v 2 http://127.0.0.1/oauth2/user/client/

-v显示请求头

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-13
    • 2019-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多