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


Groups > comp.lang.python > #98919

Re: HTTPSConnection from http.client?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Alex Naumov <alexander_naumov@opensuse.org>
Newsgroups comp.lang.python
Subject Re: HTTPSConnection from http.client?
Date Tue, 17 Nov 2015 13:34:56 +0100
Lines 39
Sender posix.ru@gmail.com
Message-ID <mailman.383.1447763704.16136.python-list@python.org> (permalink)
References <CABPy6+zYvqmOFy7aMNMH0DtUNaaJ3M3nR47QPhDPijsvN2jHbA@mail.gmail.com> <n2f2mb$qoo$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de BPMcWY+Apg2ZT0ftSVIvEwKmVXDXUhGhRF6c/UWPI5Pw==
Return-Path <posix.ru@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.018
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'error:': 0.05; 'importerror:': 0.05; 'https': 0.09; 'python': 0.10; 'packages.': 0.15; 'http.client': 0.16; 'module?': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'sender:addr:gmail.com': 0.18; 'alex': 0.18; '2015': 0.20; 'please?': 0.22; 'second': 0.24; 'tried': 0.24; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'install': 0.25; 'message-id:@mail.gmail.com': 0.27; 'package.': 0.27; 'looks': 0.29; 'url:client': 0.29; 'there.': 0.30; 'connections': 0.30; 'minimal': 0.30; '[1]': 0.32; 'anybody': 0.32; 'url:python': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'url:library': 0.36; 'to:addr :python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'missing': 0.37; 'no,': 0.38; 'received:209': 0.38; 'thank': 0.38; 'does': 0.39; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'hello,': 0.40; 'some': 0.40; 'url:3': 0.60; 'day': 0.67; 'url:http': 0.75; 'otten': 0.84; 'subject:skip:H 10': 0.84; 'source?': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=pZrUIGdwKcB8qBEwBqeUWTX39xLLD5/Aw64tqn9Cn54=; b=H/pj7dPZAWos0lAwJ5Jm8Jmvlywzkn/oR+/AHAqKEFMZl0ecngQ/OnIjIzzMCFjqjr 76Q8s7xtbRVCBi7dP7E/QUeSWErYUt0xztoP0NpMhvu8Lk+Vghrlxyx3BV3PFbLrXTX2 JGRK25v5+QtyF5qG0TEnQ8aTmR/5RqdPAdbaz+ngjJqsma9T20wWpTForkn49vUKKPg/ MQv1HPAyoPjTGlJnanUhAhup2ZbqR+/arRb5gsKdFHKPoxgKwPWw9V4ulNADQWrIVb9f tHzunjM3vx120b733/v7dzi9V9zuFDRoPt3nhnzXBs1kloZFjCp0m+RR2i9Z5wWnHjl5 rqlA==
X-Received by 10.25.127.202 with SMTP id a193mr19002336lfd.80.1447763696433; Tue, 17 Nov 2015 04:34:56 -0800 (PST)
In-Reply-To <n2f2mb$qoo$1@ger.gmane.org>
X-Google-Sender-Auth Eu_FK4RwsDc8jv953Ve7vbV3xHE
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98919

Show key headers only | View raw


On Tue, Nov 17, 2015 at 12:22 PM, Peter Otten <__peter__@web.de> wrote:
> 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?

No, I install it as a package.

> You may be missing the development
> packages.

Yes, it looks like some packages are not there.


> On a minimal SLES-12-x86_64 installation:

Can you tell me what's the name of package with http.client module please?

Thank you,
Alex

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: HTTPSConnection from http.client? Alex Naumov <alexander_naumov@opensuse.org> - 2015-11-17 13:34 +0100

csiph-web