Skip to content

Last Line of a HTTP multipart formdata request with CRLF or not? #2186

Answered by metcoder95
mccare asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

According to spec, CRLF seems to not be mandatory unless the body is of form-data content type, quoting:

The message body is itself a protocol element and MUST therefore use only CRLF to represent line breaks between body-parts RFC-2616

Although it just specifies it between body parts, not mentioning the last part of the body.
Just made quick look, haven't looked deeper into it yet

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mccare
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants