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&#13;&#10;Content-Disposition: form-data; name=&quot;p1&quot;&#13;&#10;&#13;&#10;EVT&#13;&#10;-----------------------------7d43b13720028e&#13;&#10;Content-Disposition: form-data; name=&quot;p2&quot;&#13;&#10;&#13;&#10;123456&#13;&#10;-----------------------------7d43b13720028e&#13;&#10;Content-Disposition: form-data; name=&quot;p3&quot;&#13;&#10;&#13;&#10;data&#13;&#10;-----------------------------7d43b13720028e&#13;&#10;Content-Disposition: form-data; name=&quot;p4&quot;&#13;&#10;&#13;&#10;&#13;&#10;-----------------------------7d43b13720028e&#13;&#10;Content-Disposition: form-data; name=&quot;p5&quot;&#13;&#10;&#13;&#10;M&#13;&#10;-----------------------------7d43b13720028e&#13;&#10;Content-Disposition: form-data; name=&quot;p6&quot;&#13;&#10;&#13;&#10;000000&#13;&#10;-----------------------------7d43b13720028e&#13;&#10;Content-Disposition: form-data; name=&quot;fic&quot;; filename=&quot;/opt/test/CLIBACK\TEST\TEST2010.123456&quot;&#13;&#10;Content-Type: text/plain&#13;&#10;&#13;&#10;toto&#13;&#10;-----------------------------7d43b13720028e&#13;&#10;Content-Disposition: form-data; name=&quot;password&quot;&#13;&#10;&#13;&#10;000000&#13;&#10;-----------------------------7d43b13720028e&#13;&#10;Content-Disposition: form-data; name=&quot;x&quot;&#13;&#10;&#13;&#10;16&#13;&#10;-----------------------------7d43b13720028e&#13;&#10;Content-Disposition: form-data; name=&quot;y&quot;&#13;&#10;&#13;&#10;6&#13;&#10;-----------------------------7d43b13720028e--" responsename="file">https://testhost/upload.upl?t=u&amp;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>

Reply via email to