curl-library
Re: SMTP, data corruption and dot stuffing
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Oct 2011 15:16:27 +0200 (CEST)
Date: Thu, 20 Oct 2011 15:16:27 +0200 (CEST)
On Thu, 20 Oct 2011, operaxxox_at_yahoo.ca wrote:
> In my example, the "chunk" is reduced to 16383 bytes, so that the <CR> is
> send in the next chunk.
Exactly. Since it matches the first byte of the "EOB" string
(<CR><LF>.<CR><LF>) it is being withheld until proven to either be the EOB or
not, and then it gets output accordingly - which with your test code makes the
<CR> get output in the second chunk of data.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-10-20