Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98917 > unrolled thread

Re: HTTPSConnection from http.client?

Started byPeter Otten <__peter__@web.de>
First post2015-11-17 12:22 +0100
Last post2015-11-17 13:41 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: HTTPSConnection from http.client? Peter Otten <__peter__@web.de> - 2015-11-17 12:22 +0100
    Re: HTTPSConnection from http.client? Marko Rauhamaa <marko@pacujo.net> - 2015-11-17 13:41 +0200

#98917 — Re: HTTPSConnection from http.client?

FromPeter Otten <__peter__@web.de>
Date2015-11-17 12:22 +0100
SubjectRe: HTTPSConnection from http.client?
Message-ID<mailman.382.1447759388.16136.python-list@python.org>
Alex Naumov wrote:

> Hello,
> 
> does anybody know how to create a HTTPS connections in python2 or python3?
> I tried second day to do that with http.client[1], but every time get
> error:
> 
> from http.client import HTTPSConnection
> ImportError: cannot import name HTTPSConnection
> 
> 
> Where is HTTPSConnection located? Which module?
> 
> I use openSUSE 13.1 x86_64.
> 
> Thank you,
> Alex
> 
> 
> [1] https://docs.python.org/3/library/http.client.html

Did you compile Python from source? You may be missing the development 
packages.

If you are using the Python provided by the distribution, perhaps support 
for SSL is in a separate package?

Note that I'm guessing, I don't have openSUSE.

[toc] | [next] | [standalone]


#98918

FromMarko Rauhamaa <marko@pacujo.net>
Date2015-11-17 13:41 +0200
Message-ID<87lh9wrgyk.fsf@elektro.pacujo.net>
In reply to#98917
Peter Otten <__peter__@web.de>:

> Alex Naumov wrote:
>> I tried second day to do that with http.client[1], but every time get
>> error:
>> 
>> from http.client import HTTPSConnection
>> ImportError: cannot import name HTTPSConnection
>> [...]
>> I use openSUSE 13.1 x86_64.
>
> Did you compile Python from source? You may be missing the development 
> packages.
>
> If you are using the Python provided by the distribution, perhaps support 
> for SSL is in a separate package?
>
> Note that I'm guessing, I don't have openSUSE.

On a minimal SLES-12-x86_64 installation:

   $ python3
   Python 3.4.1 (default, Jun 19 2014, 14:40:48) [GCC] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> from http.client import HTTPSConnection
   >>> 


Marko

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web