HTML代码 :
<!
DOCTYPE
html>
<
html
>
<
head
>
<
meta
charset
=
“UTF-8”
>
<
title
></
title
>
</
head
>
<
body
>
<!–
get 方式 :
地址栏:http://10.1.4.104:9090/?username=%E5%BC%A0%E5%B8%85&password=123&password=123&sex=nan&java=java&country=cn
GET /?username=%E5%BC%A0%E5%B8%85&password=123&password=123&sex=nan&java=java&html=html&country=cn HTTP/1.1
Host: 10.1.4.104:9090
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: http://127.0.0.1:8020/HtmlStudy/htmlDemo/GetAndPostDemo14.html?__hbt=1522824703984
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
post方式 :
地址栏: http://10.1.4.104:9090/
POST / HTTP/1.1
Host: 10.1.4.104:9090
Connection: keep-alive
Content-Length: 92
Cache-Control: max-age=0
Origin: http://127.0.0.1:8020
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: http://127.0.0.1:8020/HtmlStudy/htmlDemo/GetAndPostDemo14.html?__hbt=1522824703984
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
username=%E5%BC%A0%E5%B8%85&password=123&password=123&sex=nan&java=java&html=html&country=cn
–>
<!–
庖丁解牛 :
<form action=”https:
www.baidu.com
“></form>
版权声明:本文为modaiairen524原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。