I'm trying to make an authenticated request using java's URL object. The problem is that I have the @ symbol in my password (changing it is not an option right now), so when java tries the url.getUserInfo() it stops at the @ in the password and screws up my request. I tried escaping it with %40 but from what I see in debug mode it sees it as just %40 and not as an @ character.
Example: http://user:p@ss@stackoverflow.com will take the userinfo as user:p