一.什么是http协议
二.http协议版本
三.http请求1.)请求资源
2.)请求方式
常用于表单提交:<from action='提交地方' method='GET/POST'>//表单提交方式
</from> 3.)测试GET与POST区别测试GET与POST区别
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<title>MyHtml.html</title>
<meta http-equiv='keywords' content='keyword1,keyword2,keyword3'>
<meta http-equiv='description' content='this is my page'>
<meta http-equiv='content-type' content='text/html; charset=UTF-8'>
<!--<link rel='stylesheet' type='text/css' href='./styles.css'>-->
</head>
<body>
<h1>GET提交</h1>
<form action='MyHtml.html' method='GET'>
用户名:<input type='text' name='name'/><br>
密码:<input type='password' name='password'/>
<input type='submit' value='提交'/>
</form>
————————————————————————————————————————————————————————————————
<h1>POST提交</h1>
<form action='MyHtml.html' method='POST'>
用户名:<input type='text' name='name'/><br>
密码:<input type='password' name='password'/>
<input type='submit' value='提交'/>
</form>
</body>
</html>
GET提交
POST提交
3.)请求头解析
4.)实体内容
|
|