home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet 1996 World Exposition
/
park.org.s3.amazonaws.com.7z
/
park.org.s3.amazonaws.com
/
Pavilions
/
BrainOpera
/
cgi-bin
/
text
/
start-cookies.cgi
< prev
next >
Wrap
Text File
|
2017-09-21
|
947b
|
33 lines
#!/usr/local/bin/perl
# This script is for testing cookies.
# It takes the name and email address from the form and sets them as cookies
# written by Ben Adida (benjamin@media.mit.edu)
do "/www-admin/httpd/cgi-bin/cgi-hacks.pl";
do "/www-admin/old-httpd2/cgi-bin/cookies.pl";
do "/www-admin/old-httpd2/cgi-bin/redirect.pl";
require 'flush.pl';
sub html_header {
print "Content-type: text/html\n";
&flush(STDOUT)
}
&find_form_args("name|email");
&html_header;
&set_cookie("name","$name");
&set_cookie("email","$email");
&flush(STDOUT);
print "\n";
print "<HEAD><TITLE>The cookies have been recorded</TITLE></HEAD>
<BODY>
<center><h1>The cookies have been recorded !!</h1>
<hr size=3>
<h3>You can go browse around, come back to <a href=\"/cgi-bin/whoami.cgi\">this page</a> and see that the cookies know who you are !!</h3>
<hr></center>
<a href=\"/test/\"> Go back to testing page</a>
<hr>
<address>benjamin@media.mit.edu</address>
</body>";