You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by lo...@fastmail.fm on 2014/04/22 19:44:18 UTC

Embedded functions within a URL are rejected as an invalid URI

Hi, 

I have embedded functions within a URL that JMeter is throwing up as an
invalid URI, though it is accepted in the browser. 

What is the best way to make the below URL valid?

solr/search/locator/?pt=55.8698,-4.2601&sfield=location&rows=1&q={!func
cache=false}geodist()&fq=placetype: airport OR placetype:settlement OR
placetype:country&sort=score asc&fl=*,score&wt=

Thanks

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Embedded functions within a URL are rejected as an invalid URI

Posted by Deepak Shetty <sh...@gmail.com>.
browsers escape the characters automatically (if you observe using a
browser sniffer youll see that)- you need to that (%code) - if you had
specified these as parameters then JMeter could do it for you - if you are
giving it as a URL directly then you need to use a function (beanshell or
equivalent)


On Tue, Apr 22, 2014 at 10:44 AM, <lo...@fastmail.fm> wrote:

> Hi,
>
> I have embedded functions within a URL that JMeter is throwing up as an
> invalid URI, though it is accepted in the browser.
>
> What is the best way to make the below URL valid?
>
> solr/search/locator/?pt=55.8698,-4.2601&sfield=location&rows=1&q={!func
> cache=false}geodist()&fq=placetype: airport OR placetype:settlement OR
> placetype:country&sort=score asc&fl=*,score&wt=
>
> Thanks
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>