0

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

4

1 回答 1

1

我到处找这个。在这里找到它:

在您的 .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。

于 2013-03-13T03:12:13.520 回答