The Dark Ages

The Dark Ages - data for instance to send mail, search for...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
The Dark Ages Common Gateway Interface (CGI)  Early in the World Wide Web's history, the  Common Gateway Interface (CGI) was  defined to allow Web servers to process user  input and serve dynamic content.  CGI programs can be developed in any script  or programming language, but Perl is by far  the most common language. 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CGI is supported by virtually all Web  servers and many Perl modules are  available as freeware or shareware to  handle most tasks. 
Background image of page 2
Drawbacks of CGI Performance and scalability  are big problems  since a new process is created for each  request, quickly draining a busy server of  resources.   Sharing resources  such as database  connections between scripts or multiple calls  to the same script is far from trivial, leading to  repeated execution of expensive operations. 
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Most Perl scripts use the command shell to  execute OS commands with user-supplied 
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: data for instance to send mail, search for information in a file, or just leverage OS commands in general. This use of a shell opens up many opportunities for a creative hacker to make the script remove all files on the server, mail the server's password file to a secret account, or do other bad things that the script writer didn't anticipate. Servlets to the rescue! The Servlet API was developed to leverage the advantages of the Java platform to solve the issues of CGI and proprietary APIs. It's a simple API supported by virtually all Web servers and even load-balancing, fault-tolerant Application Servers. It solves the performance problem by executing all requests as threads in one process. Servlets can easily share resources...
View Full Document

This note was uploaded on 07/15/2011 for the course ECO 2023 taught by Professor Mr.raza during the Summer '10 term at FAU.

Page1 / 6

The Dark Ages - data for instance to send mail, search for...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online