Detailed POST form HTTP header

2  statement POST /hello/checkUser.html?opt=xxx HTTP / 1.1 method, Get, Post, Delete, etc.
 3  the Accept: * / *
 4  Referer: HTTP: // localhost: 8000 / the Hello / index.html representation from where to jump over, and sometimes do when reptiles will be used, some sites use this field to prevent the reptiles
 5  the Accept-Language: zh-CN
 6  Content-Type: multipart / form-the Data; boundary = --- ------------------------ 7d931c5d043e represents this type of data transmission, form-data form data represents
 . 7  the Accept-Encoding: the gzip, the deflate
 . 8  the Host: localhost: 8000
 . 9  the Content-the Length: 382
 10  Connection: the Keep-Alive
 . 11  the Cache-Control: NO-Cache
 12 is  cookies: the JSESSIONID = 6FE3D8E365DF9FE26221A32624470D24
 13 is -----------------------------7d931c5d043e
14 Content-Disposition: form-data; name="username"
15 yyy
16 -----------------------------7d931c5d043e
17 Content-Disposition: form-data; name="age"
18 zzz
19 -----------------------------7d931c5d043e
20 Content-Disposition: form-data; name="file"; filename="C:\1.txt"
21 Content-Type: text/plain
22 hello
23 -----------------------------7d931c5d043e--

 

Guess you like

Origin www.cnblogs.com/seancheer/p/4724739.html