httplib.InvalidURL: nonnumeric port: For characters in theproxypassword in URL

Phoe6 orsenthil at
Mon Nov 13 14:35:15 CET 2006

Fredrik Lundh wrote:
> "Phoe6" wrote:
> > - use urllib.quote() to covert the proxy url to a quoted one.
> you should use quote to convert the *password* to quoted form, not use it on
> the entire URL.
Am sorry Fred. The same problem:

  File "C:\Python24\lib\", line 598, in _set_hostport
    raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: '|\'

I dont think its an issue to be resolved with quote().


More information about the Python-list mailing list