问题
I have just started to use Siege to do load/stressing test on a new web server. I am trying to test on my most resource/performance heavy script, but the script requires cookies. What is the proper format for using the --header option in siege?
I have tried this with no luck:
siege --header="Set-Cookie: PHPSESSID=--COOKIE--; iptoken=--COOKIE--" http://www.myurl.com/script.php,
There is no documentation on this that I could find, so any ideas/suggestions would be appreciated.
回答1:
The answer is to use --header="Cookie: --COOKIE_DATA--"
(ref. wiki.wsmoak.net/cgi-bin/wiki.pl?Siege).
来源:https://stackoverflow.com/questions/10242914/how-do-i-use-the-header-option-to-send-cookies-with-siege