[ee122] Response ending

Vern Paxson vern at icir.org
Sat Sep 15 18:22:01 PDT 2007


> When we send data as the client we end our response with \r\n\r\n so the
> server knows when we're done.

Yes, though the test server currently echoes individual lines ending in
\r\n rather than waiting for an additional \r\n.

> How do we know when the server is done sending
> its response?

For HTTP 1.0, you'd know because it would close the connection.  However,
for phase 1 it should echo back whatever you send (so you know to expect
however many lines you sent), and the instructions state that the client
should close the connection.

		Vern


More information about the ee122 mailing list