Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36099
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.027 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'https': 0.09; 'received:209.85.212.54': 0.09; 'subject:python': 0.11; 'connect.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:requests': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'requests': 0.18; 'not,': 0.21; 'http': 0.22; 'header:In- Reply-To:1': 0.25; '(which': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'ray': 0.29; 'related': 0.30; 'fri,': 0.30; 'query': 0.30; "skip:' 20": 0.32; 'problem': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'doing': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'subject:with': 0.36; 'should': 0.36; 'does': 0.37; 'being': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'subject:-': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'matter': 0.61; '2013': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8kb+P078T3Jh57KSk7YE+/4eP+td7C983x75IBzHf0Q=; b=fL8qTfxx5pNtLABGWHc1MoAJuSJpC2Tlnv9bOn+7BZZAP3tDaBAFufF/BgTogNOJIK nXCmE6wltDVikH4DHXtR9b1EdPgvlAOVbnVTuVd02MSfVQi1pz0Ks4j/Zcrbb/rx6whL CkVg+oVQ34dN76r+YS2MpyskPNvV+FgbWfQbTGPvi2y5G1UoHolNrtf/n5I4pet++kE5 d4IFfkHL+NiomIg12TYoR72fx46DWugiL5ZFf0jv3AmnGLxAh1Qsckkaq5QPokWezC/Q gvSzdDY7uhsm7L+Hh778/ndCWZUOjiIgHtP1D6M8pJtQ2MLeh9FQCrJDqKXMBtqrGac9 MSKQ== |
| MIME-Version | 1.0 |
| In-Reply-To | <17769250.2995.1357239221470.JavaMail.rgacote@Ray-iMac-2011.local> |
| References | <857538.2991.1357238893647.JavaMail.rgacote@Ray-iMac-2011.local> <17769250.2995.1357239221470.JavaMail.rgacote@Ray-iMac-2011.local> |
| Date | Fri, 4 Jan 2013 13:56:47 +1100 |
| Subject | Re: Missing something obvious with python-requests |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.71.1357268216.2939.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1357268216 news.xs4all.nl 6860 [2001:888:2000:d::a6]:45680 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:36099 |
Show key headers only | View raw
On Fri, Jan 4, 2013 at 5:53 AM, Ray Cote
<rgacote@appropriatesolutions.com> wrote:
> proxies = {
> 'https': '192.168.24.25:8443',
> 'http': '192.168.24.25:8443', }
>
> a = requests.get('http://google.com/', proxies=proxies)
>
>
> When I look at the proxy log, I see a GET being performed -- when it should be a CONNECT.
> Does not matter if I try to get http or https google.com.
Not sure if it's related to your problem or not, but my understanding
of a non-SSL request through a proxy is that it'll be a GET request
(eg "GET http://google.com/ HTTP/1.0"). So the problem is only that
it's still doing GET requests when it's an https query (which is where
CONNECT is needed).
ChrisA
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Missing something obvious with python-requests Chris Angelico <rosuav@gmail.com> - 2013-01-04 13:56 +1100
Re: Missing something obvious with python-requests Hans Mulder <hansmu@xs4all.nl> - 2013-01-04 16:00 +0100
Re: Missing something obvious with python-requests Chris Angelico <rosuav@gmail.com> - 2013-01-05 02:24 +1100
csiph-web