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 Foundation and HTTP Protocol

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Web Foundation and HTTP Protocol Domain name Overview of the concept of domain name:

1.IP address is not easy to remember

Early use of Hosts files to resolve domain names:

1. Duplicate host name

two。 Mainframe maintenance is difficult

DNS (Domain Name System Domain name system):

1. Distributed system

two。 Hierarchy

Domain name spatial structure:

1. Root domain

two。 Top-level domain: organizational domain / country regional domain name

3. Second-level domain name

4.FQDN = hostname.DNS suffix

# # the concept of web pages

Web page:

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, which is a combination of multiple web pages.

Web page:

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

Domain name:

The URL entered when browsing the web page

HTTP:

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 connecting different pages in a website.

Publish:

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

HTML Overview HTML Hypertext markup language:

1.Hyper Text Markup Language

two。 The "source code" of the web page

Browser: "interpret and execute" HTML source code tool:

The structure of the HTML document:

1.HTML web page

two。 Head part

3. Title section

4. Main body part

5. Web page content, including text / images, etc.

Example:

The role of web page summary information on the basic tags of web pages:

1. It is convenient for browser parsing

two。 Conducive to search engine search

< title >

Label

< meta >

Label

Example:

Title label line control related label range label image label hyperlink label special symbol

Example:

Web Overview Web (World Wide Web), also known as the World wide Web, a distributed graphic information system based on a network service based on Internet

Web1.0 vs Web2.0Web1.0:

1. Characterized by editing, the content provided by the site to the user is provided after editing, and then the user reads the content provided by the site. This process is an one-way behavior from website to user.

Web2.0:

1. Pay more attention to the interaction of users. Users are not only consumers (browsers) of website content, but also producers of website content.

two。 The interaction between the website and the users is strengthened, the content of the website is provided by the users, and many functions of the website are also constructed by the users, thus realizing the two-way river flow and participation between the website and the users.

Static page static web page is the standard HTML file extension is .htm, .html:

1. Text, image, sound, FLASH animation, client script and ActiveX controls and JAVA Mini Program, etc.

It is the basis of website construction. Early websites are generally made of static web pages without background database, and it is relatively troublesome to update pages that do not contain programs and non-interactive pages, and are suitable for static web pages of display websites with few updates.

1. Every static web page has a fixed URL, and URL is suffixed with common forms such as .htm, .html, .shtml, etc., without "?"

two。 Once the web page content is published on the web server, every static web page is saved on the web server, regardless of whether users visit it or not, that is to say, a static web page is a file actually saved on the server, and each web page is a separate file.

3. The content of static web pages is relatively stable, so it is easy to be retrieved by search engines.

4. Static web pages do not have the support of database, and there is a large amount of work in website production and maintenance, so it is difficult to rely entirely on static web page production when the website has a large amount of information.

5. The interaction of static web pages is poor, and there are great limitations in function.

6. The page browses quickly, the process does not need to connect to the database, and the opening speed of the page is faster than that of the dynamic page.

Dynamic web page

1. The web page URL is not fixed and can interact with the user through the background

two。 There is an iconic symbol in the dynamic web address-"?"

3. Commonly used languages are ASP,PHP,JSP and so on.

The characteristics of dynamic web pages 1. Interactivity:

That is, the web page will dynamically change and respond according to the user's requirements and choices, and use the browser as the client interface, which will be the general trend of the development of WEB in the future.

two。 Automatic updates:

That is, there is no need to update the HTML document manually, a new page will be generated automatically, which can greatly save the workload.

3. To change from time to time:

That is, when different people visit the same URL at different times, different pages will be generated.

Overview of HHTP Protocol HTTP protocol is the most widely used network protocol on the Internet. The purpose of this protocol is to publish and receive the version of the HTML page HTTP protocol on the Web server:

1.HTTP 0.9

2.HTTP 1.0

3.HTTP 1.1

4.HTTP 2.0

The HTTP method HTTP supports several different request commands, which are called HTTP methods (HTTP method). Each HTTP request message contains a method, what actions the calcium molded server should perform.

1. Get a Web page

two。 Run a network management program

3. Delete a file, etc.

HTTP protocol has many ways to obtain Web resources, two commonly used methods: GET and POSTHTTP methods describe the GET request to obtain the resource identified by Request-URI PUT request server to store a resource and use Request-URI as its identification DELETE request server to delete the resource identified by Request-URI POST append a new data GET method GET method after the resource identified by Request-URI: obtain data from the specified server

1.GET requests can be cached

The 2.GET request will be saved in the browser's browsing record

The length of 3.GET request is limited.

4. Mainly used to obtain data

5. The string of the query will be displayed in URL, which is not safe.

POST method POST method: submit data to the specified server for processing

1.POST request cannot be cached

2.POST requests are not saved in the browser's browsing record

There is no length limit for 3.POST requests.

4. The string of the query will not be displayed in URL, so it is more secure.

HTTP status code 1. When using a browser to access a certain URL, the status code 2. 0 will be returned according to the request URL. Usually, the normal status code is 2xxj 3xx (e. G. 200) 3. If an exception occurs, 4xx will be returned. 5xx status code first defined range classification 1xx100-101Information prompt 2xx200-206success 3xx300-305client error 5xx500-505server error common HTTP status code message description 200OK request success (followed by response documents to GET and POST requests) 301 Moved Permanently request permanent page jump 403Forvidden prohibited access to this page 404Not Found server cannot be found 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

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