how can I send out request with special characters without urlencode? #432
DorisQQ2019
started this conversation in
General
Replies: 1 comment 1 reply
-
` isn't a valid URL character, this isn't even a error from Unirest, it's from Java, the only way around it is to encode the character |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, this time I get "Exception in thread "main" kong.unirest.UnirestException: java.lang.IllegalArgumentException: Illegal character in query at index 33." when I send out request for target url like "http://target/api?keyword=name:A`B`C`D
". I guess this is because the special character "`". However when I urlencode it before sending out, I cannot get the right response. I saw urllib2.urlopen(request) in python works exactly what I want. Is here any approach I can send out the request successfully and get the expected response?
Beta Was this translation helpful? Give feedback.
All reactions