COP3832, Assignment 4

Due 3/14 at the start of class.

You may NOT use CGI.pm for this assignment.

Upload the following files and hand in printouts of each:

  1. access.conf
  2. language.cgi
  3. image.cgi
  4. validate.cgi

Create a subdirectory of hw that is named content. Be sure that access is restricted to hw as it was in assignment 3.

Create four files in the content directory

Create a script that will have the same effect as language negotiation. However, the script takes care of all the details, it will not use the server's language negotiation abilities. Name the script language.cgi.

Create a script that will display one of the following images depending on the browser that is used to reference the page. Name the script image.cgi.

Create a script that contains a form and validates that all the fields have been filled in. Do not use JavaScript to validate, use server side scripting with Perl. name the script validate.cgi.

Create a file named hw4.html in your hw directory on your server.