Programming Project 1 (Warmup) [10 pts]

Due: January 25, 2001

  1. Implement (in C++) a simple EchoServer that accepts a connection on a given port and then prints the received lines on the standard error stream. Test your program by connecting Web a browser to your server (you may use the standard HTTP protocol:
       
       http://host:port
    
    
    If you want, you may send a simple response page to the browser. Remember to output two lines ahead of your simple response page:
       
       HTTP/1.0 200 OK
       Content-type: text/html
    
    
    followed by an empty line, as in:
       
       cout << "HTTP/1.0 200 OK" << endl;
       cout << "Content-type: text/html" << endl << endl;
    
    
    before outputing the text of the response page.
  2. 
    
  3. Implement (in C++) a simple page retriever that establishes a connection with a given Web browser (use our www.cs.uga.edu in testing) and retrieves the default page from the server, printing out the retrieved lines on the standard error stream.

Submit (using submit) the directory containing your server. (You should submit it to the user cs8060.)

Late programs WILL NOT be accepted.