aboutsummaryrefslogtreecommitdiff
path: root/docs/cgi/in.html
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-11 14:52:07 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-11 14:52:07 +0000
commit5614b1d6f3e1a5c137f431999fbbb38ce8cb8db8 (patch)
tree81c556d1a136112be07bbd2c19293e65fad03cdd /docs/cgi/in.html
parent976559a7cdd9338f3b3975690ca8fe072b6eb126 (diff)
downloadbusybox-w32-5614b1d6f3e1a5c137f431999fbbb38ce8cb8db8.tar.gz
busybox-w32-5614b1d6f3e1a5c137f431999fbbb38ce8cb8db8.tar.bz2
busybox-w32-5614b1d6f3e1a5c137f431999fbbb38ce8cb8db8.zip
Add CGI docs
git-svn-id: svn://busybox.net/trunk/busybox@17853 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs/cgi/in.html')
-rw-r--r--docs/cgi/in.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/cgi/in.html b/docs/cgi/in.html
new file mode 100644
index 000000000..679306aaa
--- /dev/null
+++ b/docs/cgi/in.html
@@ -0,0 +1,33 @@
1<html><head><title>CGI Script input</title></head><body><h1><img alt="" src="in_files/CGIlogo.gif"> CGI Script Input</h1>
2<hr>
3
4<h2>Specification</h2>
5
6For requests which have information attached after the header, such as
7HTTP POST or PUT, the information will be sent to the script on stdin.
8<p>
9
10The server will send <a href="http://hoohoo.ncsa.uiuc.edu/cgi/env.html#cl">CONTENT_LENGTH</a> bytes on
11this 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
12in no way obligated to send end-of-file after the script reads
13<code>CONTENT_LENGTH</code> bytes. </p><p>
14</p><hr>
15<h2>Example</h2>
16
17Let's take a form with METHOD="POST" as an example. Let's say the form
18results are 7 bytes encoded, and look like <code>a=b&amp;b=c</code>.
19<p>
20
21In this case, the server will set CONTENT_LENGTH to 7 and CONTENT_TYPE
22to application/x-www-form-urlencoded. The first byte on the script's
23standard input will be "a", followed by the rest of the encoded string.</p><p>
24
25</p><hr>
26
27<a href="http://hoohoo.ncsa.uiuc.edu/cgi/interface.html"><img alt="[Back]" src="in_files/back.gif">Return to the
28interface specification</a> <p>
29
30CGI - Common Gateway Interface
31</p><address><a href="http://hoohoo.ncsa.uiuc.edu/cgi/mailtocgi.html">cgi@ncsa.uiuc.edu</a></address>
32
33</body></html> \ No newline at end of file