Issue 1617413: urllib HTTPS Basic authentication fix (original) (raw)
urllib's support for HTTP Basic authentication via HTTPS is broken, due to an invalid call in URLopener.open_https() to HTTPConnection.putheader() (apparently miscopied from URLopener.open_http(), which gets it right). the code incorrectly calls putheader with a fully formatted header instead of passing a name and value separately, resulting in a badly formatted header ending with a trailing colon.
the fix is trivial.