
A Common Gateway Interface (CGI) is a standard for connecting external applications with a server database. It defines a set of rules that define how web servers can communicate or process a user’s HTTP request with the executable programs running on the server. It acts as a communication bridge between the web servers and information sources over the server. Let us know about the role of a common gateway interface in web development in this article.
| Common Gateway Interface with Perl |
| print “Content-type: text/HTML\r\n\r\n” print ‘<html>’; print ‘<head>’; print ‘<title> CGI Script<title>’; print ‘</head>’; print ‘<body>’; print ‘</body>’; print ‘</html>’; |