HTTP/HTTPS Content-Type的boundary
https://www.cnblogs.com/straycats/p/14461357.html
The Multipart Content-Type
https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html
Content-Type boundary header for multipart/form-data is incorrect when digest authentication is used
https://github.com/postmanlabs/postman-app-support/issues/6140
What is the boundary in multipart/form-data?
https://stackoverflow.com/questions/3508338/what-is-the-boundary-in-multipart-form-data
What if the form-data boundary is contained in the attached file?
curl 'https://www.example.com/path/to/uploadfile?t=1670897030698' \
-H 'authority: www.example.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'user-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundaryzRV2vFRt0FiLsFx9' \
-H 'accept: */*' \
-H 'origin: https://www.abc.com' \
-H 'sec-fetch-site: cross-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://www.abc.com/path/to/message/' \
-H 'accept-language: zh-CN,zh;q=0.9' \
-H 'cookie: sync_networkid=637c4340e4b0218db01832fa; at=1c14fdba-7f76-4c2a-b7c7-c2b9c82a6657' \
--data-raw $'------WebKitFormBoundaryzRV2vFRt0FiLsFx9\r\nContent-Disposition: form-data; name="fileToUpload"; filename="安全白皮书.pdf"\r\nContent-Type: application/pdf\r\n\r\n\r\n------WebKitFormBoundaryzRV2vFRt0FiLsFx9\r\nContent-Disposition: form-data; name="bizkey"\r\n\r\nxiaoxi\r\n------WebKitFormBoundaryzRV2vFRt0FiLsFx9\r\nContent-Disposition: form-data; name="auth_token"\r\n\r\n\r\n------WebKitFormBoundaryzRV2vFRt0FiLsFx9--\r\n' \
--compressed
网友评论