문제

How do you set a session cookie in autobench so you can benchmark URLs that require session authentication?

도움이 되었습니까?

해결책

I looked everywhere for this. Found it here:

In your .autobench.conf file, add this line:

## 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"

Note that this is different from using httperf's '--session-cookie' and '--wsess=N1,N2,X' params. They are not required to use a cookie in the header when doing the above.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top