Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5242 > unrolled thread
| Started by | "up2date.cyborg" <up2date.cyborg@gmail.com> |
|---|---|
| First post | 2011-05-12 17:06 +0200 |
| Last post | 2011-05-12 17:06 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
urllib2.urlopen+BadStatusLine+https "up2date.cyborg" <up2date.cyborg@gmail.com> - 2011-05-12 17:06 +0200
| From | "up2date.cyborg" <up2date.cyborg@gmail.com> |
|---|---|
| Date | 2011-05-12 17:06 +0200 |
| Subject | urllib2.urlopen+BadStatusLine+https |
| Message-ID | <mailman.1471.1305212777.9059.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web