CGI programming with Perl

Programming on the Web today can involve any of several technologies, but the Common Gateway Interface (CGI) has held its ground as the most mature method--and one of the most powerful ones--of providing dynamic web content. CGI is a generic interface for calling external programs to crunch numbers...

Descripción completa

Detalles Bibliográficos
Otros Autores: Guelich, Scott, author (author), Gundavaram, Shishir, author, Birznieks, Gunther, author
Formato: Libro electrónico
Idioma:Inglés
Publicado: Beijing ; Cambridge, Massachusetts : O'Reilly [2000]
Edición:2nd ed
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627042506719
Tabla de Contenidos:
  • CGI Programming with Perl, 2nd Edition; SPECIAL OFFER: Upgrade this ebook with O'Reilly; A Note Regarding Supplemental Files; Preface; What's in the Book; What You Are Expected to Know Before Reading; Overview of the Book; Conventions in This Book; How to Contact Us; Acknowledgments; Acknowledgments from the First Edition; 1. Getting Started; History; How CGI Is Used Today; Introduction to CGI; Sample CGI; Invoking CGI Scripts; Alternative Technologies; Why Perl?; Alternatives to CGI; Web Server Configuration; Configuring CGI Scripts; Configuring by directory; Configuring by extension
  • 2. The Hypertext Transport ProtocolURLs; Elements of a URL; Absolute and Relative URLs; URL Encoding; HTTP; The Request and Response Cycle; HTTP Headers; HTTP 1.1 and HTTP 1.0; Browser Requests; The Request Line; PUT and DELETE; GET; HEAD; POST; Request Header Field Lines; Host; Content-Length; Content-Type; Authorization; User-Agent; Accept; Referer; Cookies; Server Responses; The Status Line; Server Headers; Content-Base; Content-Length; Content-Type; Date; ETag; Last-Modified; Location; Server; Set-Cookie; WWW-Authenticate; Proxies; Identifying Clients; Caching; Content Negotiation
  • Media TypeInternationalization; Encoding; Summary; 3. The Common Gateway Interface; The CGI Environment; File Handles; STDIN; STDOUT; STDERR; Environment Variables; CGI Environment Variables; Examining Environment Variables; CGI Output; Partial Headers; Outputting documents; Forwarding to another URL; Specifying status codes; Complete (Non-Parsed) Headers; Examples; Check the Client Browser; User Authentication and Identification; Restricting Image Hijacking; 4. Forms and CGI; Sending Data to the Server; Form Tags; Quick Reference to Form Tags; The Tag; The Tag; Text fields
  • Password fieldsHidden fields; Checkboxes; Radio buttons; Submit buttons; Reset buttons; Image buttons; Plain buttons; The Tag; The tag; The Tag; Decoding Form Input; 5. CGI.pm; Overview; Denial of Service Attacks; The Kitchen Sink; Standard and Object-Oriented Syntax; Handling Input with CGI.pm; Environment Information; Accept; http; https; query_string; self_url; url; virtual_host; Accessing Parameters; Modifying parameters; POST and the query string; Index queries; Supporting image buttons as submit buttons; Exporting Parameters to a Namespace
  • File Uploads with CGI.pmGenerating Output with CGI.pm; Controlling HTTP Headers with CGI.pm; Media type; Status; Caching; Specifying an alternative target; Redirection; Other headers; Starting and Ending Documents; start_html; end_html; Standard HTML Elements; Form Elements; Alternatives for Generating Output; Lots of print Statements; Here Documents; Handling Errors; Dying Gracefully; Trapping die; CGI::Carp; Error Subroutines; Custom Module; 6. HTML Templates; Reasons for Using Templates; Rolling Your Own; Server Side Includes; Configuration; Format; Environment Variables
  • Tailoring SSI Output