This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author shashank
Recipients ajaksu2, ak, jjlee, orsenthil, shashank
Date 2009-08-22.07:27:01
SpamBayes Score 1.0997372e-05
Marked as misclassified No
Message-id <1250926023.29.0.51590316103.issue5007@psf.upfronthosting.co.za>
In-reply-to
Content
Works fine for me in 2.6 but fails as said by OP on 2.5.
(I came across this in the course of my work and am submitting a change
in a bug for the first time, pardon me if something is inappropriate :)

I used this modified codeblock:

----------
import cookielib
import urllib2

cookiejar = cookielib.LWPCookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar))
url = 'https://www.orange.sk/'
req = urllib2.Request(url, None)
s=opener.open(req)
print s.read();

-------------------

2.6 gives a complete HTML page but 2.5 raises httplib.BadStatusLine
exception.
History
Date User Action Args
2009-08-22 07:27:03shashanksetrecipients: + shashank, jjlee, orsenthil, ajaksu2, ak
2009-08-22 07:27:03shashanksetmessageid: <1250926023.29.0.51590316103.issue5007@psf.upfronthosting.co.za>
2009-08-22 07:27:01shashanklinkissue5007 messages
2009-08-22 07:27:01shashankcreate