Re: handling multipart/form-data uploads



On 20 Sep, 01:27, "tom.rmadilo" <tom.rmad...@xxxxxxxxx> wrote:
Of course the problem is not CRLF, but allowing CR, LF and CRLF to end
lines. For some odd reason email encoding works very well with
CRLF...because it disallows CR and LF within lines and the CRLF is not
part of the data. The reason for the encoding is obvious: email
messages last forever, so a simple "usually works" encoding can't work
with email.

For textual network protocols, you usually want to force the use of
crlf for end-of-line sequence; that's typically what the specification
of the protocol states. (Well, either that or binary of course.)

Donal.
.



Relevant Pages

  • Re: handling multipart/form-data uploads
    ... the ashes of the genius who brought us CRLFs... ... Of course the problem is not CRLF, but allowing CR, LF and CRLF to end ... For some odd reason email encoding works very well with ... The reason for the encoding is obvious: ...
    (comp.lang.tcl)
  • Re: handling multipart/form-data uploads
    ... For some odd reason email encoding works very well with ... CRLF...because it disallows CR and LF within lines and the CRLF is not ... The reason for the encoding is obvious: ... Length header, if one is included specifies the number of octets/bytes ...
    (comp.lang.tcl)
  • Re: Read/write with UCS-2* encodings - Possible???
    ... binmode STDOUT, 'encoding'; ... done on a filehandle which is in:crlf mode do the moral equivalent of ... I think the only answer is 'write a new:crlf layer'. ... :encoding will be changed now. ...
    (comp.lang.perl.misc)
  • Re: Anyone recognise this coding scheme?
    ... I quote from RFC 4180: ... Fields containing line breaks (CRLF), double quotes, and commas should ... No encoding there either. ... You've misread the RFC - a line break ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Read/write with UCS-2* encodings - Possible???
    ... I think the only answer is 'write a new:crlf layer'. ... Doing just `binmode' switches off encoding as well; ... :encoding to notice the filehandle is already:crlf, remove the:crlf, ...
    (comp.lang.perl.misc)