zoukankan      html  css  js  c++  java
  • HTTP协议学习笔记-2

    HTTP报文

    HTTP报文分为请求报文和响应报文(requeset and response)

    请求报文的格式:

    <method>  <request -URL> <version>

    <headers>

    <entity- body>

    http://  home.cnblogs.com/user/CurrentUserInfo   ?_=1429596439807   200OK

    method    URL                                                         parameter                  status

    响应报文格式:

    <version> <status> <reason-phrase>

    <headers>

    <entity - body>

    常用HTTP方法:

    get  :   get a file from server

    head : only get the head of file from server

    post : send the data needed processing to server

    put : store a part of main body that is requesting to server

    trace : trace the message that may be reported by proxy server

    options: decide which method can be executed on server

    delete  : delete a file from server

    http status code:

    scope                 used             meaning

    100-199             100-101        message tips

    200-299              200-206       success

    300-399              300-305       redirect

    400-499               400-415       client error

    500-599               500-505        server error

    小弟懒的切输入法,本着呼吁广大博友学习英语的原则就用英语写了(本人英语也不好,共同学习)

  • 相关阅读:
    P4890 Never·island
    P2617 Dynamic Rankings
    P3243 [HNOI2015]菜肴制作
    P4172 [WC2006]水管局长
    P4219 [BJOI2014]大融合
    P5241 序列
    P1501 [国家集训队]Tree II
    无法读取用户配置文件,系统自动建立Temp临时用户
    组件服务 控制台打不开
    打印服务器 功能地址保护错误
  • 原文地址:https://www.cnblogs.com/sungodzc/p/4444252.html
Copyright © 2011-2022 走看看