[ee122] Token failures; Command line arguments; Server to client data

Lisa Fowler fowler at eecs.berkeley.edu
Tue Sep 25 12:59:28 PDT 2007


---------------------------------------------------------
TOKEN FAILURES/PATTERN MATCHING:
---------------------------------------------------------

Our grading will use greedy token matching.

e.g.

GET/foo HTTP/1.0

---> Should return a valid method, but invalid pathname.

However, for grading for this milestone, either will be fine.


---------------------------------------------------------
COMMAND LINE ARGUMENTS
---------------------------------------------------------

For the client:

Part A requires command line arguments:  http_client <server> <port>
Part B SHOULD NOT USE command line arguments:   http_client

Therefore, since we are really targeting Part B, your final client
should not use command line arguments.


For the server:

Part A:  Specify the port on the command line:  http_server <port>
Part B:  OPTIONALLY specify the port on the command line:  http_server <port>
              DEFAULT to port 80 for the server.


---------------------------------------------------------
SERVER-TO-CLIENT DATA
---------------------------------------------------------

Upon receipt of a valid request, the server will both:

(1) echo that request to the client over the network.  This echoed
request INCLUDES THE CRLF

(2) print that request to stdout, followed immediately by the
components of the request, per the PDF


More information about the ee122 mailing list