鱼C论坛

 找回密码
 立即注册
查看: 1280|回复: 3

关于multipart/form-data的几个疑问

[复制链接]
发表于 2020-2-11 18:16:57 | 显示全部楼层 |阅读模式
10鱼币
这是我看到的一个 HTTP请求报文的部分 伪报文
  1. Content-Type: multipart/form-data; boundary=AaB03x

  2. --AaB03x
  3. Content-Disposition: form-data; name="submit-name"

  4. Larry
  5. --AaB03x
  6. Content-Disposition: form-data; name="files"
  7. Content-Type: multipart/mixed; boundary=BbC04y

  8. --BbC04y
  9. Content-Disposition: file; filename="file1.txt"
  10. Content-Type: text/plain

  11. ... contents of file1.txt ...
  12. --BbC04y
  13. Content-Disposition: file; filename="file2.gif"
  14. Content-Type: image/gif
  15. Content-Transfer-Encoding: binary

  16. ...contents of file2.gif...
  17. --BbC04y--
  18. --AaB03x--
复制代码

问几个问题:
1  哪一位大神能够 还原HTML代码 表单那部分
2 multipart/mixed 啥意思
3Content-Disposition: file啥意思 为什么 Content-Disposition: form-data; name="submit-name" 是form-data ?form-data和file有何不同?是否还有其他值?
不胜感激。

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-2-11 18:51:37 From FishC Mobile | 显示全部楼层
这好像是客户端返回给后台的数据包
一般是上传文件啥的吧
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2020-2-13 15:34:01 | 显示全部楼层
自顶一下吧
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-2-13 16:19:54 | 显示全部楼层
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-3-28 18:11

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表