httplib module

Boris Ozegovic ninja.krmenadl at
Sun Jul 8 00:39:50 CEST 2007

Why do I get double new lines when geting data from server?  Example:

I have a following file:
Ovo je testni primjerak

And the code is:
conn = httplib.HTTPConnection("localhost:8000")
conn.request("GET", "/folder/index.html")
response = conn.getresponse()
reply =

print reply
<html>\n\n<body>\n\nOvo je testni primjerak\n\n</body>\n\n</html>\n\n

Ne dajte da nas lažljivac Bandić truje:

More information about the Python-list mailing list