[Python-Dev] where did httplib.HTTPS go?

Greg Stein gstein@lyra.org
Fri, 7 Jul 2000 12:46:07 -0700


On Fri, Jul 07, 2000 at 09:05:01PM +0200, Fredrik Lundh wrote:
> [fredrik@brain src]$ ./python
> Python 2.0b1 (#4, Jul  7 2000, 12:23:15)  [GCC egcs-2.91.66 19990314/Linux
> (egcs-1.1.2 release)] on linux2
> >>> import httplib
> >>> httplib.HTTPS
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: HTTPS
> 
> urllib and the test code in httplib.py uses HTTPS,
> but I cannot find it.  and neither can grep:
> 
> Lib/httplib.py:HTTPS_PORT = 443
> Lib/httplib.py:class HTTPSConnection(HTTPConnection):
> Lib/httplib.py:  default_port = HTTPS_PORT
> Lib/httplib.py:      hs = HTTPS()
> Lib/urllib.py:            """Use HTTPS protocol."""
> Lib/urllib.py:            h = httplib.HTTPS(host, 0,
> 
> where is it?  what am I missing?


Oh... one more comment: I'll be updating urllib.py at some point to *not*
use HTTPS. It should be using HTTPSConnection instead. (and HTTPConnection
rather than HTTP) ... dunno if other libraries use httplib, but I'll look
and update those, too. Maybe in the Demo/ area.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/