urllib2.urlopen+BadStatusLine+https

U

up2date.cyborg

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top