Re: unnecessary and arbitrary new line character in response
Posted By:
Christopher_Koenigsberg
Posted On:
Wednesday, January 17, 2007 09:07 AM
The http protocol allows the server to split up a long line by inserting newlines at arbitrary places, I think; most Internet protocols do?
The receiver is supposed to ignore them. That's one reason for "content-transfer-encoding" in email, to guard your real/significant line breaks and distinguish them from extra ones just inserted in transit.
Perhaps you should first remove any newlines (linefeeds and/or carriage returns) from your string, before parsing it?