zoukankan      html  css  js  c++  java
  • HTTP

    HTTP

    HTTP(hypertext transport protocol)协议『超文本传输协议』,协议详细规定了浏览器和万维网服务器之间互相通信的规则。
    约定, 规则

    请求报文

    重点是格式与参数

    行      POST  /s?ie=utf-8  HTTP/1.1 
    头      Host: xxx.com
            Cookie: name=guigu
            Content-type: application/x-www-form-urlencoded
            User-Agent: chrome 83
    空行
    体      username=admin&password=admin
    

    响应报文

    行      HTTP/1.1  200  OK
    头      Content-Type: text/html;charset=utf-8
            Content-length: 2048
            Content-encoding: gzip
    空行    
    体      <html>
                <head>
                </head>
                <body>
                    <h1>Study</h1>
                </body>
            </html>
    
    • 404
    • 403
    • 401
    • 500
    • 200
  • 相关阅读:
    spring容器启动
    springmvc流程
    bean作用域
    bean的生命周期
    web.xml详解
    设计模式 工厂和抽象工厂
    requests 模块
    爬虫基础
    提高级
    循环语句
  • 原文地址:https://www.cnblogs.com/AaronNotes/p/14392533.html
Copyright © 2011-2022 走看看