CGI Tutorial (1/1)

Introduction

The CGI protocol allows a web server to launch an external program to process the request. The protocol specification can be found at http://www.ietf.org/rfc/rfc3875.txt.

The CGI protocol makes use of environment variables, standard input and standard output as the communication mechanism between the server and the external program. This gives a wide choice of programming languages in which the external program can be written. As many of these external programs are written using scripting languages they are usually called CGI scripts. Many of the first CGI scripts were written in Perl to make them platform independent.

A basic CGI script

hello

blog comments powered by Disqus

Copyright(c) 2006-2017 Xavier Leclercq | Privacy policy

Home
Contact Us
Search