1URLS.TXT(1) General Commands Manual URLS.TXT(1)
2
3
4
6 urls.txt - URL database for regression testing
7
9 The urls.txt file is installed by default in SIEGE_HOME/etc/urls.txt.
10 When siege is invoked without a command line reference to a URL, then
11 by default it looks for urls in that file. The advantage of using the
12 urls.txt file is two-fold: One, it frees you free retyping a url with
13 every invocation. And two, it allows you to conduct full site regres‐
14 sion testing.
15
16 When the urls.txt file is used, siege reads all the urls in that file
17 into memory and runs through the list in one of two ways, sequentially
18 or randomly. The default run is sequential from start to finish and
19 back again until the --reps or the --time option has been satisfied.
20 With the -i/--internet option selected, siege runs through the file
21 randomly simulating the stress applied by a community of internet
22 users.
23
24 The -f/--file option allows you to select a file other then the default
25 urls.txt file. You may also instruct siege to use a different file with
26 the "file" directive in .siegerc, i.e., "file =
27 /usr/local/etc/urls.txt"
28 You may set and reference variables inside the urls.txt file. All
29 variables must be declared BEFORE they are referenced. Variables are
30 declared with the "=" operator, VARIABLE = VALUE. They are then refer‐
31 enced inside $() or ${}, example: $(HOST), ${HOST}
32 HOST = joey.joedog.org
33 http://${HOST}/browse.jsp?size=5
34 http://${HOST}/admin.jsp?name=ralph
35
36
38 This is an exmple urls.txt file. Lines beginning with a hash (#) are
39 comments and ignored by siege.
40
41 #
42 # Example urls.txt file
43 # URLs database for siege
44 #
45 http://www.haha.com/index.html
46 http://www.haha.com/howto/index.html
47 http://www.haha.com/cgi-bin/howto/display.cgi?1013
48 www.haha.com/cgi-bin/fm.cgi?first=j.&last=fulmer
49 https://www.haha.com/index.shtml
50 https://www.whoohoo.com/my_whoohoo.jsp
51 # POST data requires a POST directive
52 www.haha.com/cgi-bin/foo.cgi POST first=bart&last=simpson
53 www.haha.com/hoho.jsp POST name=jeff&pass=secret
54 # POST the contents of a file using the
55 # line input character "<"
56 http://www.haha.com/my.jsp POST </home/jeff/data.txt
57
58
59
61 Jeffrey Fulmer <jeff@joedog.org>, et al.
62
64 Report bugs to jeff@joedog.org. Give a detailed description of the
65 problem and report the version of siege that you are using.
66
68 Copyright © 2007 Jeffrey Fulmer, et al.
69
70 This program is free software; you can redistribute it and/or modify it
71 under the terms of the GNU General Public License as published by the
72 Free Software Foundation; either version 2 of the License, or (at your
73 option) any later version.
74
75 This program is distributed in the hope that it will be useful, but
76 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
77 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
78 Public License for more details.
79
80 You should have received a copy of the GNU General Public License along
81 with this program; if not, write to the Free Software Foundation, Inc.,
82 675 Mass Ave, Cambridge, MA 02139, USA.
83
85 The most recent released version of siege is available by anonymous FTP
86 from ftp.joedog.org in the directory pub/siege.
87
89 siege(1) siege.config(1) layingsiege(7)
90
91
92
93Siege v2.66 April-10-2007 URLS.TXT(1)