概述
Remote Address:121.40.44.206:80
Request URL:http://www.w3school.com.cn/tiy/v.asp
Request Method:POST
Status Code:200 OK
Response Headers
view source
Cache-control:private
Content-Length:0
Content-Type:text/html; Charset=GB2312
Date:Tue, 06 Jun 2017 08:26:53 GMT
Server:Microsoft-IIS/6.0
X-Powered-By:ASP.NET
Request Headers
view source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip, deflate
Accept-Language:zh-CN,zh;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Content-Length:143044
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryJ9RUA0QCk13RaoAp
Cookie:ASPSESSIONIDSQSSTQDD=CBPLOMBDLODDAPFKPHOFLOOE
Host:www.w3school.com.cn
Origin:http://www.w3school.com.cn
Pragma:no-cache
Referer:http://www.w3school.com.cn/tiy/v.asp
Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
Request Payload
------WebKitFormBoundaryJ9RUA0QCk13RaoAp
Content-Disposition: form-data; name="pic"; filename="thunder.gif"
Content-Type: image/gif
------WebKitFormBoundaryJ9RUA0QCk13RaoAp
Content-Disposition: form-data; name="pic"; filename="uuu.gif"
Content-Type: image/gif
------WebKitFormBoundaryJ9RUA0QCk13RaoAp--
1.HTTP上传method=post,enctype=multipart/form-data; 2.计算出所有上传文件的总的字节数作为Content-Length的值 3.设置
4.多个文件数据:Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryJ9RUA0QCk13RaoAp
------WebKitFormBoundaryJ9RUA0QCk13RaoAp Content-Disposition: form-data; name="pic"; filename="thunder.gif" Content-Type: image/gif 这中间是文件的二进制数据 ------WebKitFormBoundaryJ9RUA0QCk13RaoAp Content-Disposition: form-data; name="pic"; filename="uuu.gif" Content-Type: image/gif
------WebKitFormBoundaryJ9RUA0QCk13RaoAp--这中间是文件的二进制数据
最后
以上就是漂亮身影为你收集整理的多文件上传(HTTP)的全部内容,希望文章能够帮你解决多文件上传(HTTP)所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复