【发布时间】:2013-03-13 03:07:00
【问题描述】:
如何在 autobench 中设置会话 cookie,以便对需要会话身份验证的 URL 进行基准测试?
【问题讨论】:
标签: http benchmarking load-testing httperf
如何在 autobench 中设置会话 cookie,以便对需要会话身份验证的 URL 进行基准测试?
【问题讨论】:
标签: http benchmarking load-testing httperf
我到处找这个。找到了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。
【讨论】: