How do I use the --header option to send cookies w

2020-07-08 05:19发布

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条回答
闹够了就滚
2楼-- · 2020-07-08 06:18

The answer is to use --header="Cookie: --COOKIE_DATA--" (ref. wiki.wsmoak.net/cgi-bin/wiki.pl?Siege).

查看更多
登录 后发表回答