Skip to content

21.HTTP的几种请求方法用途 #21

@webVueBlog

Description

@webVueBlog
Member
  • GET方法

    • 发送一个请求来取得服务器上的某一资源
  • POST方法

    • 向URL指定的资源提交数据或附加新的数据
  • PUT方法

    • POST方法很像,也是想服务器提交数据。但是,它们之间有不同。PUT指定了资源在服务器上的位置,而POST没有
  • HEAD方法

    • 只请求页面的首部
  • DELETE方法

    • 删除服务器上的某资源
  • OPTIONS方法

    • 它用于获取当前URL所支持的方法。如果请求成功,会有一个Allow的头包含类似“GET,POST”这样的信息
  • TRACE方法

    • TRACE方法被用于激发一个远程的,应用层的请求消息回路
  • CONNECT方法

    • 把请求连接转换到透明的TCP/IP通道

Activity

webVueBlog

webVueBlog commented on Mar 10, 2020

@webVueBlog
MemberAuthor

The GET method

Send a request to get a resource on the server
POST method

Submit data or attach new data to the resource specified by the URL
PUT method

Much like the POST method, it also wants the server to submit data. However, there are differences between them. PUT specifies the location of the resource on the server, but POST does not
The HEAD method

Only the beginning of the page is requested
The DELETE method

Delete a resource on the server
The OPTIONS method

It is used to get the method supported by the current URL. If the request is successful, there is an Allow header that contains information like "GET,POST.
The TRACE method

The TRACE method is used to fire a remote, application-layer request message loop
The CONNECT method

Convert the request connection to a transparent TCP/IP channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @webVueBlog

        Issue actions

          21.HTTP的几种请求方法用途 · Issue #21 · weekCodeing/interview-answe