http上传文件
来源:互联网 发布:pyqt5 windows 安装 编辑:程序博客网 时间:2024/05/22 13:57
一个典型的http上传协议头类似于这样:
POST /public/upload.action HTTP/1.1
ost: maiit.com:8088
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
ccept-Encoding: gzip,deflate
ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://maiit.com:8088/public/up.html
Content-Type: multipart/form-data; boundary=---------------------------88739631214394723612117964652
Content-Length: 3433
其中,boundary是文件分割符号,每个文件以如下字段开头
-----------------------------88739631214394723612117964652
Content-Disposition: form-data; name="file"; filename="hashtables.h"
Content-Type: text/x-chdr
以如下字段结尾:
-----------------------------88739631214394723612117964652
Content-Disposition: form-data; name="uploadButton"
up
-----------------------------88739631214394723612117964652--
POST /public/upload.action HTTP/1.1
ost: maiit.com:8088
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
ccept-Encoding: gzip,deflate
ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://maiit.com:8088/public/up.html
Content-Type: multipart/form-data; boundary=---------------------------88739631214394723612117964652
Content-Length: 3433
其中,boundary是文件分割符号,每个文件以如下字段开头
-----------------------------88739631214394723612117964652
Content-Disposition: form-data; name="file"; filename="hashtables.h"
Content-Type: text/x-chdr
以如下字段结尾:
-----------------------------88739631214394723612117964652
Content-Disposition: form-data; name="uploadButton"
up
-----------------------------88739631214394723612117964652--
- android http上传文件
- http上传文件
- http 文件上传例子
- http上传文件
- HTTP文件断点上传
- curl http上传文件
- android HTTp文件上传
- Http上传文件
- http文件断点上传
- HTTP文件断点上传
- Http文件上传
- HTTP文件断点上传
- http post 上传文件
- C# HTTP上传文件
- http上传文件代码
- qt http 上传文件
- HTTP POST上传文件
- HTTP文件断点上传
- 读取MP3文件内的ID3V2专辑图片并显示
- [教学] 我所认为的X2 220的超频要点,其它K10平台CPU也可以参考
- Java格式化数字——右对齐,左补0
- MFC控件对应的类名
- JAVA Annotation & 自定义Annotation
- http上传文件
- 网站seo为什么要对关键词优化分析
- Oracle、SQL server、MySQL数据库中分页查询的SQL语句
- AVI文件格式
- 利用WinDbg+Virtual PC调试驱动程序
- 【EXCEL精品收藏】EXCEL中最简单的个税计算公式(含2011年9月1日新标准)
- UVA 10927 Bright Lights
- ZOJ 1093 Monkey and Banana【DP】
- 并查集的应用——Ubiquitous Religions