[ee122] Project 1b error codes
Vern Paxson
vern at icir.org
Sun Oct 7 23:19:44 PDT 2007
> e.g.
> should it be:
> GETa /index.html HTTP/1.0 --> Invalid Request-URI token: a /index.html
> HTTP/1.0
> or:
> GETa /index.html HTTP/1.0 --> Invalid Request-URI token: a
>
> and
>
> should it be:
> GET /index.html~~~~ HTTP/1.0 --> Invalid Request-URI token: /index.html~~~~
> or
> GET /index.html~~~~ HTTP/1.0 --> Invalid Request-URI token:
> /index.html~~~~ HTTP/1.0
Any of these are fine (except if in the last one you mean to introduce a
newline, you should avoid that, as it makes it harder to grade). It would
also be fine for the first example to instead say "Invalid Request-Method".
Basically, there needs to be an error message and it needs to correctly
point out a problem with the line, but that's it.
Vern
More information about the ee122
mailing list