标签:wro windows class amp 提交 数据 pre books window
1、了解HTTP请求的格式
HTTP请求:
<request line> //http请求行
<headers> //http请求消息报头
<blank line> //回车换行
[<request-body>] //http请求正文
GET和POST实例
GET /books/?sex=man&name=Professional HTTP/1.1 Host: www.wrox.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 Connection: Keep-Alive
POST / HTTP/1.1 Host: www.wrox.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 Content-Type: application/x-www-form-urlencoded Content-Length: 40 Connection: Keep-Alive (----此处空一行----) name=Professional%20Ajax&publisher=Wiley
区别点1:get会将请求数据附在URL后,用?分割URL跟数据,不同参数用&连接;Post将把提交的数据放置在是HTTP包的包体中
GET提交的数据会在地址栏中显示出来,而POST提交,地址栏不会改变
2、HTTP响应体
<status line> //http响应状态行 <headers> //http响应消息报头 <blank line> //回车换行 [<response-body>] //http响应正文
3、
标签:wro windows class amp 提交 数据 pre books window
原文地址:https://www.cnblogs.com/CXMS/p/12366590.html