Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Web fundamentals and HTTP Protocol (Notes)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The concept of web pages

Plain text format files, written in HTML, are "translated" into web pages and displayed in the user's browser

website

It is made up of one page and is a combination of multiple web pages.

Home page

The first page that appears after opening the site is called the home page (or home page) of the site-index

domain name

The URL entered when browsing the web page

I don't know what to do.

The communication protocol used to transmit web pages

URL

It's a World wide Web addressing system.

HTML

Hypertext markup language used to write web pages

Hyperlink

Hyperlinks are the function of linking different pages in a website

Publish

The process of uploading a finished web page to a server for users to visit

HTML Overview HTML Hypertext markup language

Hyper Text Markup Lang ú age (Hypertext markup language)

The "source code" of the web page

Browser: "interpret and execute" HTML source code tool first web page\ first-level title\ second-level title\ third-level title\ fourth-level title\ fifth-level title\ sixth-level title\

The structure / / HTML page / / header part of the HTMLX file is mostly used to beautify my first web page / / title section / / body part Hello World! / / web content Including text, images and other web page basic tags. / / title tags / / meta tags, usually used in combination with keyWords (keywords)

...

/ / Line Control label (Block count label) / / Wrap label. / / range label

/ / Image tag (relative path) / / hyperlink tag. Style is set for style, and target is an overview of another web page Web.

1.Web (World Wide Web) is the global wide area network, also known as the World wide Web

two。 A distributed graphic Information system

3. A network service based on Internet

Overview of HTTP Protocol

Hi is the most widely used network on the Internet. The purpose of this protocol is to publish and receive HTML pages on Web servers.

HTTP method

HTTP supports different request commands, which are called HTTP methods (HTTP method)

Each HTTP request message contains a method that tells the server what action to perform

1. Get a Web page

two。 Run a gateway program

3. Delete a file, etc.

The HTTP method describes the GET request to get the resource identified by Request-URI (plaintext) the resource stored by the PUT request server, and uses Request-URI as its identification DELETE request server to delete the resource identified by Request-URI POST appends the new data (ciphertext) HTTP status code to the resource identified by Request-URI

When using a browser to access a URL, the status code will be returned according to the request URL

Status code first defined range classification 1xx100-101Info prompt 2xx200-206successfully 3xx300-415client error 5xx500-505server error common HTTP status code message description 200 OK request success (followed by response documents to GET and POST requests) permanent page jump for 301 Moved Permanently request 403 Forbidden prohibited access to this page 404 Not Found server cannot find the requested page 500 Internal Server Error internal server error 502 Bad Gateway invalid gateway 503 Service Unavailable current service unavailable 504 Gateway Timeout gateway request timeout HTTP protocol request flow analysis

HTTP request message format

HTTP request message format includes: request line, request header, request body

HTTP response message format

HTTP response message format includes: status line, response header, response body

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report