java.net.URISyntaxException: Illegal character in query at index 323

27 views Asked by At

For the Launch-4 request has nonce and state as dynamic values and these two dynamic values found in the previous request Launch-2 I can able to capture it enter image description here enter image description here

When I run the test Launch-2 is getting 200 response button enter image description hereenter image description here

Launch-4 request is getting as java.net.URISyntaxException: Illegal character in query at index 323: enter image description here enter image description here

Could anyone please help me

1

There are 1 answers

0
Dmitri T On

The characters which can be used in URL are defined in RFC-3986, they are:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=

others need to be URL-encoded

So you need to tick URL Encode? box next to the parameter which can hold "problematic" characters or wrap the correlated value into __urlencode() function, I guess it's either nonce or state

In general you can record your login attempt using JMeter's HTTP(S) Test Script Recorder or JMeter Chrome Extension and they will generate more or less good request which should work fine after correlation.

P.S. should method be POST?