Response codes and \r\n
Catherine Heathcote
catherine.heathcote at gmail.com
Thu Mar 5 04:37:49 EST 2009
Heya,
I am reading an XML file (code at the end if it helps) and all goes well
except I am getting the http response code printed. So everything (hat
works of course) has "200 OK" on the first line. Am I missing some
simple way of surprising this, or should I just delete the 1st line
before playing with the content?
Also everything I get has "\r\n" in it, which atm I am getting rid of
with strip(), is that the best way?
http://pastebin.com/m4120242
Thanks
More information about the Python-list
mailing list