The way the front-end is requested via HTTP

HTTP1.0 has three request methods: GET, POST, and HEAD methods;

  1. GET: request the specified page information and return the entity body
  2. POST: Submit data to the specified resource for processing request (submit form, upload file), POST request may lead to the creation of new resources/modification of existing resources.
  3. HEAD: GET request Similarly, only the response is returned but not specifically the content, for obtaining the header.

HTTP1.1 adds five new request methods: OPTIONS, PUT, DELETE, TRACE, CONNECTION

  1. OPTIONS: Allow the client to view the performance of the server
  2. PUT: The data transmitted from the client to the server replaces the content of the specified document;
  3. DELETE: request the server to delete the specified page
  4. TRACE: echo the request received by the server for testing or diagnosis
  5. CONNECTION: The HTTP/1.1 protocol is reserved for a proxy server that can change the connection to a pipe mode.

Guess you like

Origin blog.csdn.net/qq_43263320/article/details/113785275