【问题标题】:How to send an http session cookie using autobench如何使用 autobench 发送 http 会话 cookie
【发布时间】:2013-03-13 03:07:00
【问题描述】:

如何在 autobench 中设置会话 cookie,以便对需要会话身份验证的 URL 进行基准测试?

【问题讨论】:

    标签: http benchmarking load-testing httperf


    【解决方案1】:

    我到处找这个。找到了here:

    在您的 .autobench.conf 文件中,添加以下行:

    ## Add a session cookie
    # NOTE: You must put the '\n' at the end of the cookie string or it will timeout.
    httperf_add-header = "Cookie: cookie_name_here=asdf_cookie_string_here_\n"
    

    请注意,这与使用 httperf 的 '--session-cookie' 和 '--wsess=N1,N2,X' 参数不同。执行上述操作时,他们不需要在标头中使用 cookie。

    【讨论】:

      猜你喜欢
      • 2014-05-25
      • 1970-01-01
      • 2015-02-11
      • 2020-07-19
      • 1970-01-01
      • 2015-07-13
      • 2018-01-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多