Home > Web Front-end > JS Tutorial > Basic knowledge of HTTP

Basic knowledge of HTTP

php中世界最好的语言
Release: 2018-03-14 11:17:42
Original
1382 people have browsed it

This time I will bring you the basic knowledge of HTTP and what are the precautions for using HTTP. The following is a practical case, let's take a look.

Basic knowledge of HTTP

stalled: The waiting time is the time from when the browser sends a request to when the request can be sent;
Request sent: from before the first byte of the request is sent to the last one The time since the byte was emitted.
Waiting(TTFB): The time it takes to receive the first byte of the response after the request is issued.
Content Download: The time required from the first byte of the response to the last byte.

Basic knowledge of HTTP

#Remote Address: The IP address of the remote server, which is the result of domain name resolution.

Request method:

GET: used to obtain data
POST: used to submit data
PUT: user update data
DELETE: used to delete data
HEAD: used to obtain data, but does not have to return all data
TRACE:...
OPTIONS:....

Status code:

1XX: Instruction information, use Indicates that the request has been received and is ready to be processed
2XX: Indicates that the request is successful
3XX: Indicates redirection
4XX: Indicates client error, syntax error or the request cannot be implemented
5XX: Indicates server Client error, unable to process legitimate request

Common status codes:

200: Success
400: The client request has a syntax error and the server cannot understand
401: The The request may not be authorized
403: The server receives the request but refuses to serve it, possibly because it does not have permission, etc.
404: The resource was not found
500: An unpredictable error occurred on the server side
503: The server side is currently unable to process the client's request, and it may take a while to return to normal

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

Detailed explanation of javaScript objects

##css3 to achieve bar percentage effect

The above is the detailed content of Basic knowledge of HTTP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template