Re: NSData downloaded over socket is bigger than it should be...
Re: NSData downloaded over socket is bigger than it should be...
- Subject: Re: NSData downloaded over socket is bigger than it should be...
- From: Andrew Farmer <email@hidden>
- Date: Fri, 19 Dec 2008 12:27:52 -0800
On 19 Dec 08, at 10:24, Jean-Nicolas Jolivet wrote:
Well after comparing the data that I am receiving with the data that
I SHOULD be receiving, it turns out that dots (yes, the dot
character (.) ) are added all over the place in the data.... if I
have 10 extra bytes, it means 10 extra dots were added to my data,
so for example, a line that SHOULD read:
.m;{äMã≈P#ü1ˆTMë&L>ÆÖ-«∏4iˇ¯àÚPë‡gêæ¯Ø
Instead reads:
..m;{äMã≈P#ü1ˆTMë&L>ÆÖ-«∏4iˇ¯àÚPë‡gêæ¯Ø
Notice the extra dot at the beginning of the line... it turns out
that ALL the extra dots that gets added are at the beginning of
lines, when there is already a dot there....
RFC 977, section 2.4.1 states:
If the text contained a period as the first character of the text
line in the original, that first period is doubled. Therefore, the
client must examine the first character of each line received, and
for those beginning with a period, determine either that this is the
end of the text or whether to collapse the doubled period to a
single one.
You'll need to check for and remove these characters yourself._______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden