On Thu, Mar 18, 2004 at 10:29:39AM -0800, Aaron Bannert wrote: > On Mon, Mar 15, 2004 at 09:13:45AM +0100, Philippe Marzouk wrote: > > On Sun, Mar 14, 2004 at 05:27:16PM -0800, Aaron Bannert wrote: > > > This sounds reasonable to me, did it ever get committed? > > > > I imagine you asked the flood developers but I just did a cvs diff and > > this patch was not committed. > > Nope, I was just catching up on old mailings and wanted to see if > this was ever addressed. > > > I've committed it, thanks for the patch. > > Could you provide an example xml input file that I could stick > in the examples/ directory that shows usage of this new parameter? >
I attached a file with the way I use it. I use it to test the upload of a file, in this case a text file containing 'toto' (a french friend of foobar) to an application developped by the company I work for. There are a few params taken from the fieldq in the web form and the included file. Obviously you need support for uploading on the application running on the web server. HTH, Philippe
<?xml version="1.0"?> <!DOCTYPE flood SYSTEM "flood.dtd"> <flood configversion="1"> <urllist> <name>Test Hosts</name> <description>A bunch of hosts we want to hit</description> <url method="POST" Content-Type="multipart/form-data; boundary=---------------------------7d43b13720028e" payload="-----------------------------7d43b13720028e Content-Disposition: form-data; name="p1" EVT -----------------------------7d43b13720028e Content-Disposition: form-data; name="p2" 123456 -----------------------------7d43b13720028e Content-Disposition: form-data; name="p3" data -----------------------------7d43b13720028e Content-Disposition: form-data; name="p4" -----------------------------7d43b13720028e Content-Disposition: form-data; name="p5" M -----------------------------7d43b13720028e Content-Disposition: form-data; name="p6" 000000 -----------------------------7d43b13720028e Content-Disposition: form-data; name="fic"; filename="/opt/test/CLIBACK\TEST\TEST2010.123456" Content-Type: text/plain toto -----------------------------7d43b13720028e Content-Disposition: form-data; name="password" 000000 -----------------------------7d43b13720028e Content-Disposition: form-data; name="x" 16 -----------------------------7d43b13720028e Content-Disposition: form-data; name="y" 6 -----------------------------7d43b13720028e--" responsename="file">https://testhost/upload.upl?t=u&o=6000</url> </urllist> <profile> <name>RoundRobinProfile</name> <description>Test of the Round Robin Configuration</description> <useurllist>Test Hosts</useurllist> <!-- Profile Events --> <profiletype>round_robin</profiletype> <!--socket>generic</socket--> <socket>keepalive</socket> <!-- Verification Events --> <verify_resp>verify_200</verify_resp> <!-- Reporting Events --> <report>relative_times</report> </profile> <farmer> <name>Joe</name> <!-- run the Joe farmer 2 times --> <count>1</count> <!-- Joe uses this profile --> <useprofile>RoundRobinProfile</useprofile> </farmer> <farm> <name>Bingo</name> <usefarmer count="1">Joe</usefarmer> </farm> <!-- Set the seed to a known value so we can reproduce the same tests --> <seed>23</seed> </flood>