117 Homework Assignment #12 (10 pts)
Most students completed this homework in class #11
on 11/6/2007.
Inclass graded exercise
objective:
1. create a free account on tripod.com
2. upload a simple web page that calls a simple cgi program
3. upload the cgi perl program into cgi-bin
4. test that this all works.
browse to: http://www.tripod.lycos.com
click big green button: Start now
Under Tripod Free,
click Sign up
Warning: do not enter any real personal information on this web site.
username: enter your 3 char login for this class
add chars if necessary to be accepted
write down your username.
password: use your class 5 char password
add your 3 char login to make an 8 char password
make up a first and last name.
address: make up a number between 1500 and 2000
on bristol st
leave city, state, and zip code as is
make up birth date
email address: your 3 char login @unix01.sac.edu
e.g. z9z@unix01.sac.edu
choose a gender
uncheck all the boxes
enter the largest numbers
click: I agree
======================================
View the default web page that has been setup for you:
http://username.tripod.com
=====================================
create a textfile named: index.html
with these lines:
<h1>hello</h1>
<form METHOD=GET ACTION="/cgi-bin/tst.pl">
<input type=submit value="Submit">
</form>
======================================
ftp ftp.tripod.com
login with the account name that you created
that starts with your 3 char login
password (your 5 char password + 3 char login)
ls
you should see index.htm and cgi-bin directory
ren index.htm indexold.htm
put index.htm
quit
======================================
http://username.tripod.com
should say hello and then submit
=========================================
On your local system,
create a textfile named tst.pl
with these 4 lines:
#
print "Content-type: text/html\n\n";
print "<h1>my cgi output</h1>\n";
#
==========================================
ftp ftp.tripod.com
login
cd cgi-bin
ls
put tst.pl
quit
==========================================
http://username.tripod.com
Now when you click on submit,
it should display "my cgi output"
===========================================
to get credit for this homework,
show the instructor that you get the correct output
when you click the submit button.
You may also email me your tripod username
so I can grade your assignment.
Remember your tripod username must begin with your 3 character
class login.