Chapter 16 - Web Programming with CGI

The application hitcounter presents a simple hitcounter for your website. It is possible to enter blocklists in a configfile so robots and perhaps your own computer are excluded from the statistics. There are still a lot of improvements possible ofcourse like setting a cookie so you get only one hit per sessio | Chapter 16 - Web Programming with CGI Outline Introduction HTTP Request Types Multi-Tier Architecture Accessing Web Servers Apache HTTP Server Requesting XHTML Documents Introduction to CGI Simple HTTP Transaction Simple CGI Script Sending Input to a CGI Script Using XHTML Forms to Send Input Other Headers Case Study: An Interactive Web Page Cookies Server-Side Files Case Study: Shopping Cart Internet and Web Resources Introduction Web server Responds to client, provides resource (like XHTML page) XHTML replacing HTML More information in Appendix B of book URL is a request for a document Web server maps URL (Uniform Resource Locator) to file Returns requested document HTTP Hypertext Transfer Protocol Platform independent Transfer requests and files over Internet HTTP Request Types HTTP request methods (types) Specifies how client makes requests of server Form XHTML element . | Chapter 16 - Web Programming with CGI Outline Introduction HTTP Request Types Multi-Tier Architecture Accessing Web Servers Apache HTTP Server Requesting XHTML Documents Introduction to CGI Simple HTTP Transaction Simple CGI Script Sending Input to a CGI Script Using XHTML Forms to Send Input Other Headers Case Study: An Interactive Web Page Cookies Server-Side Files Case Study: Shopping Cart Internet and Web Resources Introduction Web server Responds to client, provides resource (like XHTML page) XHTML replacing HTML More information in Appendix B of book URL is a request for a document Web server maps URL (Uniform Resource Locator) to file Returns requested document HTTP Hypertext Transfer Protocol Platform independent Transfer requests and files over Internet HTTP Request Types HTTP request methods (types) Specifies how client makes requests of server Form XHTML element with buttons, text fields, GUI components Used to enter data into a web page Get Used to send data to server; part of URL Info after ? is user input (query string) Max limit on size (depends on server) Post User cannot see query fields Fields can exceed get size limit Multi-Tier Architecture N-tier application (multi-tier) Divide functionality Information tier Stores data in database Middle tier Business and presentation logic Controls interaction of clients and data What is and is not allowed Processes data from information tier, presents to client Client tier (top tier) User interface (users act directly with this tier) Requests middle tier to get data from information tier Multi-Tier Architecture Application Middle tier Information tier Client tier Database Accessing Web Servers Need URL to access Web server Contains machine name (host name) Local Web server (on own machine) localhost references local machine .

Bấm vào đây để xem trước nội dung
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.