Invalid URL Exclusion

https://twitter.com/sessions?authenticity_token=b1b43178e09c1e6ccec1b3183f1f139f39643aaf&session%5Busername_or_email%5D=ddddd&session%5Bpassword%5D=rrrrr&q=&site_action=https%3A%2F%2Ftwitter.com%2Fsessions&serialized_string=Hello

why is this url throwing out java.net.MalformedURLException??

+3
source share
1 answer

The only reason I can think of is because your code mistakenly applies the URL decoder to the URL string before trying to parse the URL. This would replace the% xx escape sequences with the characters they stand for, and you would end up with illegal characters in the request part in the url.

Send the code that throws the exception.

+2
source

Source: https://habr.com/ru/post/1739609/


All Articles