httplib.InvalidURL: nonnumeric port: For characters in the proxy password in URL
Fredrik Lundh
fredrik at pythonware.com
Mon Nov 13 04:12:04 EST 2006
Phoe6 wrote:
> Hi,
> The following piece of code works properly when my proxy password
> contains characters[a-zA-Z0-9] etc. But when my proxy password
> contained something like '|\/|' , the httplib incorrectly indentified
> it as separator.
if you want to prevent the URI parser from treating something as part of
the URI, you need to quote it:
pwd = urllib.quote(pwd, "")
</F>
More information about the Python-list
mailing list