RFC7578 says that it follows the model laid out in RFC2046, but I'm confused on how closely. RFC2046 (section 5) says that a delimiter line uses the boundary, two dashes "--", and the preceding CRLF as the delimiter. So if I have a boundary of "boundary123", the delimiting line should be:
Code: Select all
\r\n--boundary123
It also mentions that the delimiter line may end with whitespace as "transport padding" but I have not come across that yet. I don't know if that's relevant to form submissions or not.
The last thing is that it mentions the footer of the data, the "close-delimiter", should consist of the delimiter, plus two more dashes, i.e.:
Code: Select all
\r\n--boundary123--
I've tried this in Firefox and Chromium so far. They both give identical results with the exception of the choice of boundary.
I'm just wondering if the RFCs are not being followed quite right or am I not understanding things correctly?