Chapter 6: Web and RPC Based Application Development Chapter goal: Www and Http Web programming RPC and Middleware 哈工大计算机学院李全龙 Network Application Development Server Software Desi
哈工大计算机学院 李全龙 Network Application Development Server Software Design 1 Chapter 6: Web and RPC Based Application Development Chapter goal: WWW and HTTP Web Programming RPC and Middleware
Www and Http 哈工大计算机学院李全龙 Network Application Development Server Software Desi 2
哈工大计算机学院 李全龙 Network Application Development Server Software Design 2 WWW and HTTP
World Wide web a major application used on the Internet Simple interface Two concepts Point Click 哈工大计算机学院李全龙 Network Application Development Server Software Desi
哈工大计算机学院 李全龙 Network Application Development Server Software Design 3 World Wide Web Major application used on the Internet Simple interface Two concepts Point Click
Use of client-Server paradigm a Web server Makes set of pages available Uses port 80 Web client Called a browser Creates tcp connections to server Sends requests for items 哈工大计算机学院李全龙 Network Application Development Server Software Desi
哈工大计算机学院 李全龙 Network Application Development Server Software Design 4 Use of Client-Server Paradigm Web server Makes set of pages available Uses port 80 Web client Called a browser Creates TCP connections to server Sends requests for items
Use of client-Server paradigm Primary protocol used between browser and server known as Hyper Text Transfer Protocol(HPPT) HT TP requests sent as text(ASCIr) GET: request an item from the server HEAD: request status information about an item POST: send data to the server 哈工大计算机学院李全龙 Network Application Development Server Software Desi
哈工大计算机学院 李全龙 Network Application Development Server Software Design 5 Use of Client-Server Paradigm Primary protocol used between browser and server known as HyperText Transfer Protocol (HPPT) HTTP requests sent as text (ASCII) GET: request an item from the server HEAD: request status information about an item POST: send data to the server
Use of client-Server paradigm Response from server begins with aSCII header Status code (200 handled request) Http/1.0 200 ok DaEe:Mon,30e200001:22:22 Server: Apache/1.2.5 Last-Modified: Sat 28 oct 2000 01:03:37 GMT EIag:"130:e-81-3883bbe9 Cantent-tanath: 125 Accept-Rangos: bytes Connect lon: close Content-Type: text/plain 哈工大计算机学院李全龙 Network Application Development Server Software Desi
哈工大计算机学院 李全龙 Network Application Development Server Software Design 6 Use of Client-Server Paradigm Response from server begins with ASCII header Status code (200 = handled request)
Web Components Browser Web server Hypermedia links a Document representation Transfer protocol 哈工大计算机学院李全龙 Network Application Development Server Software Desi
哈工大计算机学院 李全龙 Network Application Development Server Software Design 7 Web Components Browser Web server Hypermedia links Document representation Transfer protocol
Browser application program User' s interface to web Becomes Web client to fetch information from Web server Displays information for user 哈工大计算机学院李全龙 Network Application Development Server Software Desi
哈工大计算机学院 李全龙 Network Application Development Server Software Design 8 Browser Application program User’s interface to Web Becomes Web client to fetch information from Web server Displays information for user
Inside a browser Main controller Receives input from user Invokes client and interpreter Clients One or more built into browser Uses network to fetch items iNterpreter One or more built in Displays items 哈工大计算机学院李全龙 Network Application Development Server Software Desi 9
哈工大计算机学院 李全龙 Network Application Development Server Software Design 9 Inside a Browser Main controller Receives input from user Invokes client and interpreter Clients One or more built into browser Uses network to fetch items Interpreter One or more built in Displays items
Illustration of a Browser Input fronn LHTML mouse and controller interpreter keyboard outpur sent to optional displa interpreter optional client client network interface communication with remote server a Browser contains many components 哈工大计算机学院李全龙 Network Application Development Server Software Design 10
哈工大计算机学院 李全龙 Network Application Development Server Software Design 10 Illustration of a Browser Browser contains many components