On 18/06/06, Bennett McElwee <[EMAIL PROTECTED]> wrote:
Well, anything appearing in an HTML file should be decoded before being
used. This:

  <a href="http://www.example.com/go?s=1&amp;t=2";>Go</a>

Refers to the URL http://www.example.com/go?s=1&t=2

Whereas this:

  <a href="http://www.example.com/go?s=1&t=2";>Go</a>


Are you sure it's not valid?

is not even valid HTML.

Sadly, of course, plenty of web apps generate invalid HTML. Maybe JMeter
needs to cater for these. But it should deal with the valid cases by
default.

Cheerio,
Bennett.
--
Bennett McElwee
MOS Contractor
Mobile 021 456 200

-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 June 2006 11:39 pm
To: JMeter Users List
Subject: Re: &amp; in dynamic links

As I thought, the &amp; appears in the HTML page source:

<a
href="http://www.businesslink.gov.uk/bdotg/action/layer?r.s=tl&amp;topic
Id=1073861197"
title="Choose the right systems and suppliers"><abbr
title="Information Technology">IT</abbr> &amp; e-commerce</a>

However the link displays in the status bar (and link box when selected)
as:

http://www.businesslink.gov.uk/bdotg/action/layer?r.s=tl&topicId=1073861
197

Using the link:

http://www.businesslink.gov.uk/bdotg/action/layer?r.s=tl&amp;topicId=107
3861197

does not work; it goes back to the home page.

Maybe there is a requirement for JMeter to provide some form of
built-in URL decoding - the difficulty is knowing when to apply it.
Not everything needs decoding...

S
On 16/06/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> The RE is layer\?r\.XX=(.+?)" where X is tl, l1, l2, l3
>
> And HTTP Request has
>
> /bdotg/action/layer?r.XX=${__BeanShell(fixAmps("${foreachVarXX}"))}
>
> The website is http://www.businesslink.gov.uk
>
> Martin West
> 01252 778772
>
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 15, 2006 11:24 PM
> To: JMeter Users List
> Subject: Re: &amp; in dynamic links
>
> To go back to the original problem - are you sure that the original
> references use & and not &amp; ?
>
> The Regex extractor definitely won't encode &, and I don't think the
> sampler does either.
>
> What does the Tree View Listener show for the result?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This communication, including any attachments, is confidential. If you are not 
the intended recipient, you should not read it - please contact me immediately, 
destroy it, and do not copy or use any part of this communication or disclose 
anything about it. Thank you. Please note that this communication does not 
designate an information system for the purposes of the Electronic Transactions 
Act 2002.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to