Due: Last day of class CS 629: HW # 3 Points 100 .../hw3.html
Objective of this assignment
Build up on previous assignment
Learn how to write general purpose servers like htttpd?
You write a real server. NO client. The client is a web browser.
Form processing
The task: Write an http daemon in Java or C++.
Use Allegro.cs.bgsu.edu
The project is in three parts.
Part I: respond to a client request (from Netscape) in the form of a standard URL:
Part II: send the file fileName.html back to client browser.
This file has an HTML form. Client views the form.
Part III: Client fills the form elements and sends it using POST method
Server prints out the form values from client.
How to run?
Launch Netscape (or the OTHER browser) with the url:
http://www.cs.bgsu.edu:yourPortNumber/yourAccountName/fileName.html
Your server listens at port number yourPortNumber.
The file fileName.html should contain a form with elements
Textbox
checkbox
radio button
single selection menu
multiple selection menu
Notes
Note that httpd is connectionless.
Form data will come in another connection, on the same port #
You will do serverSockerHandle.accept() again
Do not use threads.
Group size < 5.
The group cannot all be the same as the last one. There should be some change!
Make sure your group has someone who knows Java.
Java tutorial is available on line.
Turn in a copy of the program and screen shot.
Additional Resources
A day time client program in Java
A day time server program in Java
Instructions on compiling a Java program
A form that contains some form elements
Html display of the above form
Html display of the above form