How do I use the --header option to send cookies with Siege?

不打扰是莪最后的温柔 提交于 2019-12-12 08:38:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!