From owner-FreeBSD-users-jp@jp.freebsd.org  Mon Jan 12 12:11:53 1998
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) id MAA08581
	Mon, 12 Jan 1998 12:11:53 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) with ESMTP id MAA08575
	for <freebsd-users-jp@jp.freebsd.org>; Mon, 12 Jan 1998 12:11:51 +0900 (JST)
Received: from mame.educ.cs.gunma-u.ac.jp (mame.educ.cs.gunma-u.ac.jp [133.8.3.12]) by mama.educ.cs.gunma-u.ac.jp (8.8.5+2.7Wbeta5/3.5W11/12/96) with ESMTP id MAA05294; Mon, 12 Jan 1998 12:11:46 +0900 (JST)
Received: (from j5306050@localhost) by mame.educ.cs.gunma-u.ac.jp (8.8.5+2.7Wbeta5/3.5W11/12/96) id MAA13438; Mon, 12 Jan 1998 12:11:30 +0900 (JST)
Date: Mon, 12 Jan 1998 12:11:30 +0900 (JST)
From: Matsumura Naoki <j5306050@educ.cs.gunma-u.ac.jp>
Message-Id: <199801120311.MAA13438@mame.educ.cs.gunma-u.ac.jp>
To: FreeBSD-users-jp@jp.freebsd.org
CC: gezhai@kw.netlaputa.ne.jp
In-reply-to: gehong's message of Mon, 12 Jan 1998 11:29:59 +0900 <34B98027.34D772B4@kw.netlaputa.ne.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: FreeBSD-users-jp 23137
Subject: [FreeBSD-users-jp 23137] =?iso-2022-jp?B?GyRCRn5OTyVHITwlPzxoRkAbKEI=?=(
	=?iso-2022-jp?B?GyRCOkYhSxsoQg==?=
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$B$^$D$`$i!w72GOBg$G$9!#(B

# Reply-To: gezhai@kw.netlaputa.ne.jp
# $B",$3$l$O(BML$B$G$O$D$1$J$$J}$,$$$$$H;W$$$^$9!#(B

   >>Date: Mon, 12 Jan 1998 11:29:59 +0900
   >>From: gehong <gezhai@kw.netlaputa.ne.jp>
   >>
   >>$B$d$O$jF~NO%G!<%?<hF@$,$G$-$^$;$s!#(B
   >>$B4D6-$NLdBj$+$b$7$l$^$;$s!#(Baccess.conf httpd.conf srm.conf $B$K@_Dj$9$kI,MW(B
   >>$B$,$"$j$^$7$+!)(B

$B$"$/$^$G$b(BCGI$B$N=q$-J}$,$^$:$$$N$G$O$J$$$+$H;W$&$N$G$9$,!D!#(B

   >>$B$J$*(B $B0J2<<B9T$9$k$H(B
   >>#setenv CONTENT_LENGTH test
   >>#./test.cgi
   >>read(...)$B$^$G;_$^$j$^$7$?!#(B
   >>
   >>test.cgi :
   >>print "Content-type: text/html\n\n";
   >>print "<html> \n";
   >>read(STDIN, $str, $ENV{'CONTENT_LENGTH'});
   >>print $str;
   >>print "</html>";
   >>
   >>$B7k2L!'(B
   >>"Content-type: text/html
   >><html>
   >>$B!!(B"
   >>
   >>$BF~NOBT$A>uBV$K$J$C$F$$$^$9!#(B

read(STDIN..)$B$7$F$$$k$N$G$9$+$i!"I8=`F~NO$+$i$N(B
$BF~NO$rBT$C$F$$$k$N$G$9!#(B

CONTENT_LENGTH $B$H$$$&$N$O!"I8=`F~NO$+$iEO$5$l$k%G!<%?$ND9$5$G$9!#(B
% setenv CONTENT_LENGTH 5
$B$H$9$k$H!"(Btest.cgi$B$OI8=`F~NO$+$i(B5$B%P%$%HFI$_9~$_$^$9!#(B

% ./test
Content-type: text/html
<html>
($B$3$3$G(Babcde$B$rF~NO(B)
abcde(5$B%P%$%HI8=`F~NO$+$iFI$s$GI=<((B)
</html>

% ./test
Content-type: text/html
<html>
($B$3$3$G(Babcdefg$B$rF~NO(B)
abcde($B$"$/$^$G$b(B5$B%P%$%H$7$+FI$^$J$$(B)
</html>


CGI$B$H$7$F<B9T$9$k$H$I$&$J$j$^$9$+!)(B $BB?J,$&$^$/F0$/$H;W$$$^$9!#(B
$B0J2<$N$h$&$J(BFORM$B$+$i>e$N%9%/%j%W%H$r8F$s$G$_$F$/$@$5$$!#(B

<html>
<form action="http://URL/test.cgi" method="post">
<input type="text" name="sample" size=60>
<input type="submit" value="ok">
</form>
</html>

sample=$BF~NO$7$?J8;z(B

$B$HI=<($5$l$l$P$&$^$/F0$$$F$$$^$9!#(B

---
j5306050@educ.cs.gunma-u.ac.jp
$B$^$D$`$i$J$*$-!w72GOBg3X>pJs9)3X2J(B


