Open GoogleCodeExporter opened 9 years ago
Would this also cause problems if there was a : in the password?
IMHO the most logical way to solve this would be by using the same rules as
defined in http://tools.ietf.org/html/rfc3986#section-3.2
Original comment by gc...@loowis.durge.org
on 30 Sep 2013 at 8:50
I don't think it would cause an issue if there was a : in the password as by
the time we get to that point we have a string like 'username:password' so
doing a left split here makes sense. This could break if the username contained
a : but I imagine that would be much less likely.
I agree the right thing to do would be to follow the rfc URI syntax rules which
say that to use any of the reserved characters you have to use url encoded
versions of them. See my second paragraph in my first message about using
urllib.unquote_plus()
Original comment by intioc...@gmail.com
on 1 Oct 2013 at 7:32
I concur, the 'right' thing to do is probably the url quoting. Although it's a
bit unfortunate given that openers are used mostly on the command line.
To be honest, the opener parser could use a revisit. I'm sure we could
formalize the syntax a bit. And I never did get round to writing tests!
Original comment by willmcgugan
on 1 Oct 2013 at 8:03
Original issue reported on code.google.com by
intioc...@gmail.com
on 30 Sep 2013 at 12:57Attachments: