1. RAJKIYA ENGINEERING COLLEGE, AMBEDKAR NAGAR (737)
(DEPARTMENT OF INFORMATION TECHNOLOGY)
A Colloquium presentation on
Common Gateway Interface
Under the supervision of
Miss Ritu Verma
Submitted By:
Mohit Jaiswal
Roll no.1573713017
Submitted to:
Miss Anamika Srivastava
(Asst. Professor)
2. Contents
INTRODUCTION
CGI ARCHITECTURE
HOW DOES CGI WORK?
APPLICATIONS
INTRODUCTION TO PERL
ADVANTAGES
DISADVANTAGES
CONCLUSION
REFERENCES
3. Introduction : What is CGI ?
CGI stands for Common Gateway Interface in
other words, a standard ("common") way of
communicating ("interface") between different
processes ("gateway").
The Common Gateway Interface, or CGI, is a set of standards that
define how information is exchanged between the web server and
a custom script.
5. Browsing using CGI
To understand the concept of CGI, lets see what happens when we click a hyper link
to browse a particular webpage or URL
Your browser contacts the HTTP web server and demand for the URL i.e.
filename.
Web Server will parse the URL and will look for the filename in if it finds that
file then sends back to the browser otherwise sends an error message indicating
that you have requested a wrong file.
Web browser takes response from web server and displays either the received
file or error message.
6. CGI
1. HTTP request 2. Call CGI
3. CGI program’s
response
4. HTTP responseUser
Web Browser
(on client)
Application
(on server)
Server
How does CGI work?
7. Basic Setup
That's the basic set up for a CGI form, but what
happens after the user presses Submit? Consider, for
example, this simple form:
Name:
E-mail:
SUBMIT
Here's the chain of events when the user hits
"Submit":
7
9. What is PERL?
Perl is a stable, cross platform programming language.
Perl stands for Practical Extraction and Report
Language.
It is used for mission critical projects in the public and
private sectors.
Perl is Open Source software, licensed under its
Artistic.
License, or the GNU General Public License (GPL).
Perl was created by Larry Wall.
10. proyectoweb2.com
Centro de capacitacion use CMS ‐ CGI::Application
Unlibrary.com
Book sharing and cataloging site, uses CGI::Application, My SQL, Apache on
Linux
Dis‐Order (metal music webshop)
Page‐A‐Day
Calendars Online
CGI::Application, My SQL & Apache on Linux
Workman.com
Ajax, site search, shopping cart and Gift‐O‐Matic are all CGI::Apps
And Many more..
Completed Websites based on
CGI: Application
11. Advantages
PLATFORM INDEPENDENCE : Most web servers support CGI,
Unix: Apache,Netscape,NCSA,Microsoft IIS.
LANGUAGE INDEPENDENCE : Perl,TCL,C,C++ Visual basic ,
Appletscript, java.
SCALABILITY: The simplicity of the CGI interface mean that it is
extremely scalable.
12. Disadvantages
Not Good to interact with database(connecting issue).
Not flexible or powerful to generate dynamic HTML pages.
For busy web site running complex applications,the
performance problem become critical issue.
It is free not easy to sell the web server products with
free software.
13. Scope of Research
Popularity Contest for CPAN Modules
Offline Command Line Search for CPAN
Which tests matter?
Binary CPAN mirror.
14. Conclusion
CGI is not a language .
CGI is a protocol defining how server program interact
with application programs to process the HTTP request
& return the HTTP response.