提交参数
<form action="/FileReadWrite/SaveContactServlet" method="post">
用户名: <input type="text" name="name"/>
密 码: <input type="password" name="password"/>
<input type="submit" value="提交"/>
</form>
Post请求头信息
// 代表浏览器接受的数据类型
Accept : text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
// 浏览器接受的编码格式
Accept-charset: ISO-8859-1
// 浏览器可以接受的数据的压缩格式
Accept-Encoding :gzip, deflate
// 可以接受的语言
Accept-Language :zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
// 浏览器跟服务器的链接状态 close(链接关闭)/keep-alive(保持链接)
Connection :keep-alive
Content-Length :23
Content-Type :application/x-www-form-urlencoded
// (必须有) 表示当前请求要访问的目标地址(主机 : 端口)
Host :10.0.1.167:8080
// 表示浏览器最后的缓存时间
If-Modified-Since: Tue,11 Jul 2000 18:23:51 GMT
// 表示当前请求来自于哪里(就是谁请求的)
Referer:http://10.0.1.167:8080/FileReadWrite/index.html
Upgrade-Insecure-Requests :1
// 表示浏览器的类型
User-Agent :Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0
// 浏览器保存的Cookie信息
Cookie:name=1111
Post响应头信息
Accept-Ranges
bytes
Content-Length
1419
Content-Type
text/html
Date
Fri, 10 Nov 2017 02:24:45 GMT
ETag
W/"1419-1510280468229"
Last-Modified
Fri, 10 Nov 2017 02:21:08 GMT
Server
Apache-Coyote/1.1
网友评论