Error using httplib documentation example code

Brian Beck exogen at gmail.com
Fri Oct 8 20:10:59 EDT 2004


Some new developments...

Using the new code, I can successfully read the contents of the response 
if I use r.fp.read() instead of just r.read(), HOWEVER odd ASCII appears 
in the result[1]:

###################################################
[1] Partial result using r.fp.read():

MIME-version: 1.0



0042

<HTML>
<HEAD>
<TITLE>CWRU Online Phonebook</TITLE>
</HEAD>
<BODY>


0060

--
Brian Beck
Adventurer of the First Order



More information about the Python-list mailing list