Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5242
| Date | 2011-05-12 17:06 +0200 |
|---|---|
| From | "up2date.cyborg" <up2date.cyborg@gmail.com> |
| Subject | urllib2.urlopen+BadStatusLine+https |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1471.1305212777.9059.python-list@python.org> (permalink) |
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!
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
urllib2.urlopen+BadStatusLine+https "up2date.cyborg" <up2date.cyborg@gmail.com> - 2011-05-12 17:06 +0200
csiph-web