You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-dev@httpd.apache.org by Fabiano Reis <fa...@uol.com.br> on 2002/04/17 21:59:21 UTC

flood parse error in urllist

hi,

	i have problemas with flood.  I enter with this url:

	http://host/script.cgi?arg1=x&arg2=y

	my xml file looks like:

--
<flood>
  <urllist>
        <name>Test Hosts</name>
        <description>A bunch of hosts we want to hit</description>
<url method="GET">http://host/script.cgi?arg1=x\&arg2=y</url>
  </urllist>
  <profile>
    <name>Example Profile</name>
    <description>A Test Round Robin Configuration</description>

    <useurllist>Test Hosts</useurllist>

    <profiletype>round_robin</profiletype>
    <socket>generic</socket>
    <report>relative_times</report>
    <verify_resp>verify_200</verify_resp>

  </profile>

  <farmer>
    <name>Joe</name>
    <count>1</count>
    <useprofile>Example Profile</useprofile>
  </farmer>

  <farm>
    <name>Bingo</name>
    <usefarmer count="1">Joe</usefarmer>
  </farm>

  <seed>1</seed>
</flood>
---

flood say that is an error in this url with this message:

"Error parsing XML: XML parser error code: not well-formed (invalid
token) (4)"

I make a test: when i try with this url: http://host/script.cgi?arg1=x
flood work.

What is wrong?

[]s

Re: flood parse error in urllist

Posted by Aaron Bannert <aa...@clove.org>.
On Wed, Apr 17, 2002 at 10:24:27PM +0100, Thom May wrote:
> > <url method="GET">http://host/script.cgi?arg1=x\&arg2=y</url>
>                                                 ^^^^
>                 Shouldn't this be &amp; rather than \& :
> <url method="GET">http://host/script.cgi?arg1=x&amp;arg2=y</url>

Yes, that is correct. Since flood accepts XML input, that input must
be XML-encoded. It is kind of ugly, but it is consistent.

-aaron

Re: flood parse error in urllist

Posted by Thom May <th...@planetarytramp.net>.
* Fabiano Reis (fabiano.reis@uol.com.br) wrote :
> hi,
> 
> 	i have problemas with flood.  I enter with this url:
> 
> 	http://host/script.cgi?arg1=x&arg2=y
> 
> 	my xml file looks like:
> 
> ---
> <flood>
>   <urllist>
>         <name>Test Hosts</name>
>         <description>A bunch of hosts we want to hit</description>
> <url method="GET">http://host/script.cgi?arg1=x\&arg2=y</url>
                                                ^^^^
                Shouldn't this be &amp; rather than \& :
<url method="GET">http://host/script.cgi?arg1=x&amp;arg2=y</url>

-- 
Thom May -> thom@planetarytramp.net

USB uses a master/slave protocol designed by Microsoft: Microsoft is the master, and you are the slave.