Electronic Postcard Application with CGI and Sockets

Name

Short: CGI and Sockets
Long: Electronic Postcard Application with CGI and Sockets

Objective

The purpose of this lab is to implement a part of a distributed application using CGI to execute the program through the web server and sockets for inter-process communication.

Time allocation

Four hours are allocated to complete this lab assignment.

Exercise

You will have to implement a CGI program that:

Tips

  1. Make sure you understand the protocols used by CardDatabase and CardWrite servers. Use telnet to try out a few commands.
  2. Start by modifying the client in the sockets example.
  3. Manually set the QUERY_STRING environment variable for debugging purposes.
  4. Build three separate programs, one for each type of web page to be generated.

Reporting your work

The lab is reported by showing the assistant the working application. All members of the lab group should be present when reporting.

Appendices