http 提交表单数据
表单 Form
<FORM action="http://192.168.11.150:80/oauth/v2/formDataDemo"
enctype="multipart/form-data"
method="post">
<P>
What is your name? <INPUT type='text' name='submit-name'><BR>
What files are you sending? <INPUT type='file' name='files'><BR>
<INPUT type="submit" value="send"><INPUT type="reset">
</FORM>
查看HTTP请求头部
POST /oauth/v2/formDataDemo HTTP/1.1
Host: 192.168.11.150
Connection: keep-alive
Content-Length: 132770
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: null
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryPNydCorQnao6cVjB
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4
Request Playload
------WebKitFormBoundaryPNydCorQnao6cVjB
Content-Disposition: form-data; name="submit-name"
(一个空行)
aaaaaaaaaaaaa
------WebKitFormBoundaryPNydCorQnao6cVjB
Content-Disposition: form-data; name="files"; filename="??.png"
Content-Type: image/png
(一个空行)
(一个空行)
------WebKitFormBoundaryPNydCorQnao6cVjB--