Or just use the first version but tick the Encode option in the Http
sampler GUI (in the parameters list).
URI encoding is needed when sending requests though I'm not 100% sure this
is the root cause of your problem. Tell us if it works


On Tue, Apr 24, 2012 at 2:37 PM, Flavio Cysne <[email protected]> wrote:

> Try this
>
>
> http://test.thisisatestabc.com/resources?type=JS&r=/js/vendor/html5shim.js&r=/js/vendor/respond.js&r=%7Cy%7Cyui%2Fyui-min.js&r=xy-yui-config&r=/js/widgets/external.js&r=/js/core/utility/domready.js
>
> Regards.
> Flávio Cysne
>
> 2012/4/24 Marcelo Jara <[email protected]>
>
> >
> > Hello
> >
> > Some queries in my data set have a pipe character. These are failing  in
> > jmeter due to a parsing issue. I'm using httpclient4.  Do I need to use
> > some pre-processor to escape the character?
> >
> > java.net.URISyntaxException: Illegal character in query at index 101:
> >
> http://test.thisisatestabc.com/resources?type=JS&r=/js/vendor/html5shim.js&r=/js/vendor/respond.js&r=|y|yui/yui-min.js&r=xy-yui-config&r=/js/widgets/external.js&r=/js/core/utility/domready.js
> >    at java.net.URI$Parser.fail(Unknown Source)
> >    at java.net.URI$Parser.checkChars(Unknown Source)
> >    at java.net.URI$Parser.parseHierarchical(Unknown Source)
> >    at java.net.URI$Parser.parse(Unknown Source)
> >    at java.net.URI.<init>(Unknown Source)
> >    at java.net.URL.toURI(Unknown Source)
> >    at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:227)
> >    at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
> >    at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1054)
> >    at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1043)
> >    at
> >
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416)
> >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271)
> >    at java.lang.Thread.run(Unknown Source)
> >
> > Thanks,
> >
> > MJ
> >
>

Reply via email to