I have a property file which contains an URL, on the next row the first parameter needed in the URL and on the next one, the second one, like this (example):
glt.url=http://...?username={0}&password={1}&type=html
glt.username=sew_dw_43
glt.password=RE94ks
But when I make the request, I have an error saying:
Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 85:
Still, if I hard-code the values in the URL, it works.
Do you have any ideas? Thank you in advance.
I solved it. I just replaced the parameters in the Java function which took the strings from the properties file.
It took me a while until I found the function which takes the parameters from the properties file mentioned. Although I don't understand the downvote?! Thank you all for your help!