CGI Programming with Perl
Book information
Description
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, query databases, generate customized graphics, or perform any other server-side task. There was a time when CGI was the only game in town for server-side programming; today, although we have ASP, PHP, Java servlets, and ColdFusion (among others), CGI continues to be the most ubiquitous server-side.;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. 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 fields. Hidden fieldsCheckboxes 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.pm Generating Output with CGI.pm. Controlling HTTP Headers with CGI.pmMedia 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 Including Boilerplates Executing CGI Programs.
Similar books
Ah! 250 Yummy French Recipes: A Yummy French Cookbook for Your Gathering
2020 · EPUB
MAKE YOUR OWN FACE MASK: Quick Guide to Making Your Own Medical Face Mask at Home
2020 · EPUB
Easy Ground Beef Recipes: 135 Quick & Tasty Ground Beef Recipes to Make at Home
2020 · AZW
The Disaster Survival Pocket Guide: A Comprehensive Guide to Prepare for & Survive Any Disaster
2020 · AZW
Tension: Build a Bigger, Stronger You With Resistance Band Training
2021 · AZW
Secret Corruption
2012 · AZW
CreateSpace Word Templates
2017 · AZW
IMPROVE SEX: 4 BOOKS IN 1: Never Have A Boring Sex Again, Nature’s Aphrodisiacs, Sexy Fantansies For Couples, Kama Sutra, Tantra & Bdsm
2020 · AZW