1,web Server (1) Web server operations
The Web browser communicates with the Web server by sending a URL to the server. A URL can specify one of two different resources: a file or a program.
All communication between the Web client and the Web server uses standard Web protocol HTTP.
(2) General features of the server
There are two directories for the Web server's file structure: the document root and the server root directory. The document root user has direct access to the server root that allows only administrator access.
2, Hyper-Text Transfer Protocol HTTP
The HTTP contains two phases: the request phase and the response phase. Each HTTP communication (request or response) between the user agent and the Web server consists of two parts: the head and the body. The header contains information about the communication, and the subject contains the data of the communication.
(1) Request phase
Common formats for requests:
http method Domain name http version header field empty line message body
The request method has Get,post,head,put and delete, the most common is get and POST.
(2) Response phase
The common format for HTTP responses is as follows:
Status line Response Header field blank line response body
Status code:
Start number |
Category |
1 |
Information |
2 |
Success |
3 |
redirect |
4 |
Client Error |
5 |
Service-side Error |
3 Security
There are 4 features of web security: Privacy, integrity, verifiable, non-repudiation.
4 Web Programming Toolbox
HTML: Hypertext Markup Language
PHP: Server-side scripting language specifically designed for Web
Flash: A plug-in for authoring environments and players
ajax:asynchronous JavaScript and XML, asynchronous JavaScript and XML. Communication with the server is asynchronous.
Web Design Notes-Chapter I: Fundamentals