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


Groups > comp.lang.python > #50151

ssl handshake operation timed out on Python 3.3.2

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'dev': 0.07; 'username,': 0.07; 'pages.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'django': 0.11; 'project,': 0.12; '2.7': 0.14; 'windows': 0.15; '(also': 0.16; '2.7.3': 0.16; 'excerpt': 0.16; 'gnupg': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'summarize,': 0.16; "skip:' 30": 0.19; 'machine': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'headers': 0.24; 'passes': 0.24; 'specifies': 0.24; 'ssl': 0.24; 'cheers,': 0.24; 'post': 0.26; 'code:': 0.26; 'header:X -Complaints-To:1': 0.27; 'tried': 0.27; 'idea': 0.28; "doesn't": 0.30; "i'm": 0.30; 'code': 0.31; "skip:' 10": 0.31; 'linux.': 0.31; 'anyone': 0.31; 'checked': 0.32; 'run': 0.32; 'another': 0.32; 'linux': 0.33; 'running': 0.33; 'problem.': 0.35; 'test': 0.35; 'but': 0.35; 'hi,': 0.36; 'virtual': 0.37; 'same.': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; "couldn't": 0.39; 'hosted': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'traffic': 0.61; 'direct': 0.67; 'between': 0.67; 'results': 0.69; 'box)': 0.91; 'url:url': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Benedict Verheyen <benedict.verheyen@gmail.com>
Subject ssl handshake operation timed out on Python 3.3.2
Date Mon, 8 Jul 2013 12:46:42 +0000 (UTC)
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host ip-188-118-10-225.reverse.destiny.be
User-Agent Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
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.4384.1373287617.3114.python-list@python.org> (permalink)
Lines 40
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1373287617 news.xs4all.nl 16003 [2001:888:2000:d::a6]:33539
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:50151

Show key headers only | View raw


Hi,


for a project, I need to post data to some aspx pages.
The aspx pages are hosted by another company.
I develop on a virtual Debian Wheezy (Virtual box) running on Windows.
I couldn't get the code to run either on Windows nor Linux.

On my testserver (also a Debian Linux Wheezy) however, the code works with 
Python 2.7.3 but not with Python 3.3.2. Another difference is that the 
testserver has a direct ip, so nothing in between the machine and the 
internet. I checked the firewall, the traffic passes without a problem.

The error I get is that the SSL handshake operation timed out.
I tried some code that specifies the ssl protocol but the results are the 
same.

I'm stumped. Does anyone have an idea as to why this code works on python 
2.7 and not on python 3.3?
To summarize, on my dev machine, it doesn't work with either Python 2.7.3 
or 3.3.2, on my test machine, it works with Python 2.7.3 but not with 
Python 3.3.2

An excerpt of the code:
...
data = {'_UserName_': username, '_Password_': password}
headers = {'Cache-control': 'private','Connection':'Keep-Alive'}
r = requests.post("https://url.aspx", data=data, headers=headers, 
timeout=8)


Any ideas would be welcome,

Cheers,
Benedict

-- 
Benedict Verheyen                       Debian, Python and Django user
GnuPG Public Key 0x712CBB8D

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


Thread

ssl handshake operation timed out on Python 3.3.2 Benedict Verheyen <benedict.verheyen@gmail.com> - 2013-07-08 12:46 +0000

csiph-web