File: in.html

package info (click to toggle)
busybox 1%3A1.37.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,928 kB
  • sloc: ansic: 190,183; sh: 10,440; cpp: 1,428; makefile: 1,006; asm: 798; yacc: 570; lex: 355; perl: 334; python: 112; awk: 29
file content (33 lines) | stat: -rw-r--r-- 1,364 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html><head><title>CGI Script input</title></head><body><h1><img alt="" src="in_files/CGIlogo.gif"> CGI Script Input</h1>
<hr>

<h2>Specification</h2>

For requests which have information attached after the header, such as
HTTP POST or PUT, the information will be sent to the script on stdin.
<p>

The server will send <a href="http://hoohoo.ncsa.uiuc.edu/cgi/env.html#cl">CONTENT_LENGTH</a> bytes on
this file descriptor. Remember that it will give the <a href="http://hoohoo.ncsa.uiuc.edu/cgi/env.html#ct">CONTENT_TYPE</a> of the data as well. The server is
in no way obligated to send end-of-file after the script reads
<code>CONTENT_LENGTH</code> bytes. </p><p>
</p><hr>
<h2>Example</h2>

Let's take a form with METHOD="POST" as an example. Let's say the form
results are 7 bytes encoded, and look like <code>a=b&amp;b=c</code>.
<p>

In this case, the server will set CONTENT_LENGTH to 7 and CONTENT_TYPE
to application/x-www-form-urlencoded. The first byte on the script's
standard input will be "a", followed by the rest of the encoded string.</p><p>

</p><hr>

<a href="http://hoohoo.ncsa.uiuc.edu/cgi/interface.html"><img alt="[Back]" src="in_files/back.gif">Return to the
interface specification</a> <p>

CGI - Common Gateway Interface
</p><address><a href="http://hoohoo.ncsa.uiuc.edu/cgi/mailtocgi.html">cgi@ncsa.uiuc.edu</a></address>

</body></html>