HTTP ProtocolHttp协议
Hyper Text Transfer Protocol
超文本传输协议
Used on the
上使用
Based on Request-Response Model
基于请求-响应模式
Static Web Page静态Web页面
Fig
Web Browser
Web Server
Step 1: HTTP Request
Step 2: HTTP Response
Example
Sample HTTP InteractionHTTP交互例子
Fig
Web Browser
Web Server
GET /files/new/image1 HTTP/
Accept: image/gif
Accept: image/jpeg
HTTP / 200 OK
Date: Tue, 19-06-02 15:58:10 GMT
Server: MyServer
Content-length: 3010
…(Actual data for the image)
HTTP Request
HTTP Response
Dynamic Web Page动态Web页
Client sends HTTP Request
客户端发送HTTP请求
Server executes a program
服务器执行程序
Server sends back an HTTP Response
服务器返回一个HTTP响应
Dynamic Web Page动态Web页
Fig
Web Browser
Web Server
Step 1: HTTP Request
Step 4: HTTP Response
Step 2: Invokes an application program in response to the HTTP request
Step 3: The program executes and produces HTML output
Active Web Page活动Web页
Client sends HTTP Request
客户端发送HTTP请求
Server sends back HTML Page and a Client-side Program
服务器端返回HTML页和客户端程序
Examples: Applet, ActiveX Control
例如: Applet, ActiveX Control
Active Web Page活动Web页
Fig
Web Browser
Web Server
Step 1: HTTP Request
Step 2: HTTP Response
Contains
HTML Page
…..
…..
Small Program
…..
…..
Step 3: Browser interprets HTML page and also executes the program
TCP/IPTCP/IP协议
Transmission Control Protocol/ Protocol
传输层控制协议/协议
Convention munication on the
上通信的协定
Consists of five layers of software
包含5层软件
TCP/IP LayersTCP/IP层
Fig
Layer Number
Layer Name
5 (Highest)
Application
4
Transport
3
2
Data link
1 (Lowest)
Physical
TCP/IP Layers
Fig
Application Layer
Transport Layer
Layer
Data Link Layer
Physical Layer
安全协议 来自淘豆网www.taodocs.com转载请标明出处.