<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://fileformats.archiveteam.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=Common_Gateway_Interface</id>
		<title>Common Gateway Interface - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=Common_Gateway_Interface"/>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Common_Gateway_Interface&amp;action=history"/>
		<updated>2026-05-16T22:27:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Common_Gateway_Interface&amp;diff=27386&amp;oldid=prev</id>
		<title>Jsummers at 20:24, 12 March 2017</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Common_Gateway_Interface&amp;diff=27386&amp;oldid=prev"/>
				<updated>2017-03-12T20:24:13Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:24, 12 March 2017&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|formattype=electronic&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|formattype=electronic&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|subcat=Web&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|subcat=Web&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|extensions={{ext|cgi}}, others&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|extensions={{ext|cgi&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}, {{ext|fcgi&lt;/ins&gt;}}, others&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Common Gateway Interface''' ('''CGI''') is a protocol by which a [[web]] server uses a local executable program to handle a request from a web browser.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Common Gateway Interface''' ('''CGI''') is a protocol by which a [[web]] server uses a local executable program to handle a request from a web browser.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;CGI uses a convenient, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;but &lt;/del&gt;somewhat crude, kind of inter-process communication. For each suitable request it receives, the web server runs a new instance of the CGI handler program. It pipes the body of the request, if any, to the program's ''standard input'' stream. All other parameters are communicated via ''environment variables''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;CGI uses a convenient, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;if &lt;/ins&gt;somewhat crude, kind of inter-process communication. For each suitable request it receives, the web server runs a new instance of the CGI handler program. It pipes the body of the request, if any, to the program's ''standard input'' stream. All other parameters are communicated via ''environment variables''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The CGI handler writes its response to its ''standard output'' stream, which is read by the web server, and relayed over the network to the web browser.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The CGI handler writes its response to its ''standard output'' stream, which is read by the web server, and relayed over the network to the web browser.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A file with a '''.cgi''' extension might be a CGI handler program (though there are no restrictions on the name of a CGI handler program, other than those imposed by the operating system). If so, it will use a standard [[Executables|executable]] file format, not some hypothetical &amp;quot;CGI file format&amp;quot;. A '''.cgi''' file could also be the saved response from a CGI handler, in which case the most likely format is [[HTML]] (though there are no restrictions on the file format of a CGI response).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A file with a '''.cgi''' extension might be a CGI handler program (though there are no restrictions on the name of a CGI handler program, other than those imposed by the operating system). If so, it will use a standard [[Executables|executable]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or scripting &lt;/ins&gt;file format &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(such as [[Perl]])&lt;/ins&gt;, not some hypothetical &amp;quot;CGI file format&amp;quot;. A '''.cgi''' file could also be the saved response from a CGI handler, in which case the most likely format is [[HTML]] (though there are no restrictions on the file format of a CGI response).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== FastCGI ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== FastCGI ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jsummers</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Common_Gateway_Interface&amp;diff=27384&amp;oldid=prev</id>
		<title>Jsummers: Created page with &quot;{{FormatInfo |formattype=electronic |subcat=Web |extensions={{ext|cgi}}, others }} '''Common Gateway Interface''' ('''CGI''') is a protocol by which a web server uses a lo...&quot;</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Common_Gateway_Interface&amp;diff=27384&amp;oldid=prev"/>
				<updated>2017-03-12T20:07:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{FormatInfo |formattype=electronic |subcat=Web |extensions={{ext|cgi}}, others }} &amp;#039;&amp;#039;&amp;#039;Common Gateway Interface&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;CGI&amp;#039;&amp;#039;&amp;#039;) is a protocol by which a &lt;a href=&quot;/wiki/Web&quot; title=&quot;Web&quot;&gt;web&lt;/a&gt; server uses a lo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FormatInfo&lt;br /&gt;
|formattype=electronic&lt;br /&gt;
|subcat=Web&lt;br /&gt;
|extensions={{ext|cgi}}, others&lt;br /&gt;
}}&lt;br /&gt;
'''Common Gateway Interface''' ('''CGI''') is a protocol by which a [[web]] server uses a local executable program to handle a request from a web browser.&lt;br /&gt;
&lt;br /&gt;
CGI uses a convenient, but somewhat crude, kind of inter-process communication. For each suitable request it receives, the web server runs a new instance of the CGI handler program. It pipes the body of the request, if any, to the program's ''standard input'' stream. All other parameters are communicated via ''environment variables''.&lt;br /&gt;
&lt;br /&gt;
The CGI handler writes its response to its ''standard output'' stream, which is read by the web server, and relayed over the network to the web browser.&lt;br /&gt;
&lt;br /&gt;
A file with a '''.cgi''' extension might be a CGI handler program (though there are no restrictions on the name of a CGI handler program, other than those imposed by the operating system). If so, it will use a standard [[Executables|executable]] file format, not some hypothetical &amp;quot;CGI file format&amp;quot;. A '''.cgi''' file could also be the saved response from a CGI handler, in which case the most likely format is [[HTML]] (though there are no restrictions on the file format of a CGI response).&lt;br /&gt;
&lt;br /&gt;
== FastCGI ==&lt;br /&gt;
A variant named '''FastCGI''' allows a single process to handle multiple requests. Some other method of inter-process communication is used, such as a Unix domain socket.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* RFC 3875: The Common Gateway Interface (CGI) Version 1.1&lt;br /&gt;
* [[Wikipedia: Common Gateway Interface]]&lt;br /&gt;
* [[Wikipedia: FastCGI]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Protocols]]&lt;/div&gt;</summary>
		<author><name>Jsummers</name></author>	</entry>

	</feed>