Разрешены ли начальные переносы в многозначных значениях данных формы? - PullRequest
0 голосов
/ 04 октября 2019

Разрешены ли начальные символы новой строки в многочастных значениях тел данных формы?

Я заметил, что curl автоматически удаляет эти строки. Chrome хранит их.

Пример запроса:

POST / HTTP/1.1
Host: localhost:8888
User-Agent: curl/7.65.1
Accept: */*
Content-Length: 154
Content-Type: multipart/form-data; boundary=------------------------706e786c1c97f9e0

--------------------------706e786c1c97f9e0
Content-Disposition: form-data; name="username"


bla
 blub
--------------------------706e786c1c97f9e0--

Я проверил RC1341, и он сообщает:

body-part = <"message" as defined in RFC 822, 
         with all header fields optional, and with the 
         specified delimiter not occurring anywhere in 
         the message body, either on a line by itself 
         or as a substring anywhere.  Note that the 
         semantics of a part differ from the semantics 
         of a message, as described in the text.> 

Я не уточнил соответствующую информацию в RFC 822.

...