Project 2: 22C:178 & 055:134

Computer Communications Fall 1998

Project 4 [due 23 November]

This project asks you to write a C program communicating with a WWW server. Your task is to write the chekword command that fetches a specified web page and determines whether or not it contains a given character string anywhere in the web page's text.

The syntax of executing your program should be

chekword URL text
which communicates with a specified WWW server (known from the URL) and tests to see if the page given by the URL has the given text or not. For instance,
chekword "http://www.cs.uiowa.edu/index.html" hours
would produce the answer "Yes" whereas
chekword "http://www.cs.uiowa.edu/index.html" bingo
would return the answer "No" because the word bingo does not appear on the CS department's web page.

You'll need to know the following to complete the assignment.

What to Turn In

Submit your program source by email so that we can compile it, test it, and verify that it works correctly. Mail the program to herman@cs.uiowa.edu and specify in the subject line, the course number, the project number and the last four digits of your student ID number (we are hoping that four digits will be unique). So, for example if your student number is 123456789, then the subject line of your email should be:

178 project 4, student 6789
If you do not have such a subject line, I will bounce the mail back to you for resubmission.

Grading

This project counts 150 points maximum. We are not looking for expert programming here, just a program that works for various cases. We will test to see that it does not abort if given no command parameters, or only one parameter; we will test it with two parameters; we will test it with a variety of different web pages and character strings.