Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'anyway': 0.03; 'raises': 0.07; 'http,': 0.09; 'received:74.125.82.174': 0.12; 'received :mail-wy0-f174.google.com': 0.12; 'domain.': 0.16; 'fail,': 0.16; 'parameters,': 0.16; 'subject:https': 0.16; 'url:fin': 0.16; 'thanks!': 0.18; 'anyway.': 0.19; 'code': 0.22; 'fail': 0.22; 'signed': 0.27; 'work.': 0.27; "doesn't": 0.28; 'error': 0.29; 'hi,': 0.29; 'subject:skip:u 10': 0.29; 'message-id:@gmail.com': 0.30; 'to:addr:python-list': 0.32; 'another': 0.32; 'someone': 0.33; 'test': 0.33; 'using': 0.34; 'received:192': 0.34; 'post': 0.34; 'there': 0.35; 'header:User-Agent:1': 0.35; 'url:gmail': 0.35; 'response': 0.36; 'error.': 0.36; 'list,': 0.36; 'received:192.168': 0.37; 'should': 0.37; 'received:google.com': 0.38; 'but': 0.38; 'help': 0.39; 'to:addr:python.org': 0.39; 'could': 0.39; "it's": 0.40; 'header:Received:5': 0.40; 'skip:h 20': 0.60; 'here': 0.65; 'browser,': 0.68; 'xxx': 0.69; 'subject:+': 0.73; 'url:login': 0.77; 'url:php': 0.79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=8Bci6ZbsrAY7Nkaz0N+nNc5p2AqiVRbLnuvlFWJTceU=; b=VJ9VAaDhZkEiRHQprGi3vN8/2U1vDWr1RnbaXVHVt54eEQKiJF0RJH+E5+REL5/cru rKErZ1tQbf5z0Es5+LANqkT9ZvDZir5aHByhDynltrBX0oekpya4tGlDkcGmre4THY1s CMtNiFwdhriHyVeTSOZ9+VK8kT2g+AW5RBBmM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=tc838pk4hZdS43jLgEpaY1+l/zM7GOvu7MpvGqL6JiP6XjXa5+I6rdCATpr5+gMouq ToPC1J9SZvLdgDg1P9Oq3qSn0IkTzZUOcwki6GLoFhMqcJljfL/e4JzlWIJgO9SBYedJ rdet3w8C1Wwy3cAjk5fqVFIA1i0W6A/5L6ceA= Date: Thu, 12 May 2011 17:06:05 +0200 From: "up2date.cyborg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: python-list@python.org Subject: urllib2.urlopen+BadStatusLine+https Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305212777 news.xs4all.nl 81483 [::ffff:82.94.164.166]:55574 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5242 Hi, I am new to this list, I don't really know if I should post here my request. Anyway. The following code is raising httplib.BadStatusLine on urllib2.urlopen(url) url = 'https://stat.netaffiliation.com/requete.php?login=xxx&mdp=yyy&debut=2011-05-01&fin=2011-05-12' response = urllib2.urlopen(url) content = response.read() response.close() if the url is http, it doesn't fail, if it's https://www.gmail.com, it doesn't fail neither! someone could help me to make it work. When going to the url using a browser, there is no error. The only thing is that the certificate is signed for another domain. of course, on my real test I replace xxx and yyy, but anyway the error is the same with or without the parameters, even https://stat.netaffiliation.com raises the exception... Thanks!