Idea for improvement - random and iteration/thread variables

8 views
Skip to first unread message

Jarda Lhotak

unread,
Jan 18, 2011, 5:31:19 AM1/18/11
to Siege Users
Hi all,

would it be possible to extend the support of variables in URL file to
have a variable containing a counter based or iteration/thread and
random values?

Some examples how I can see this working, please take this for
inspiration only :)
1) thread 10 / test iteration 154
http://test.mydomain.org/send.aspx?what=$(_t)_$(_i)
would for example generate http://test.mydomain.org/send.aspx?what=10_154

2) random example ... result ... note
$(_r,5,[A-Za-z0-9]) ... iU56q ... generates a random 5chars long
string consisting of lower, upper case characters and numbers
$(_r,10,[A-Z]) ... ERTXIUCUQI ... generates a random 10chars long
string consisting of upper case characters
$(_r,3,[0-9]) ... 087 ... generates a number with three digits

I'm not asking for complete regex implementation ;) but some way how
to add custom variables would be really great and would make siege
even more powerful tool.


Many thanks!

Jarda





je...@joedog.org

unread,
Jan 18, 2011, 10:17:41 AM1/18/11
to siege...@googlegroups.com
I thought about this a long time ago. Unfortunately, there are no good
ways to distinguish between legitimate URL characters and variables. Your
suggestion is essential a four character combo $(_[something]) so that
reduces the chances of false matches but it doesn't eliminate them.

Maybe the list has some thoughts.

Reply all
Reply to author
Forward
0 new messages