[ee122] Response ending

Eric Cheung ericcheung at berkeley.edu
Mon Sep 17 13:56:43 PDT 2007


I understand that the test server just echoes back what the client 
sends, but for our server, it should be sending something of one of the 
following form to the client, correct?:
GET /Research/Areas/OSNT/index.html HTTP/1.0
Method = GET
Request-URI = /Research/Areas/OSNT/index.html
HTTP-Version = HTTP/1.0

or

GET /Research/Areas/OSNT/index.html HTTP/1.0
<ERROR MESSAGE>

If that's the case, the client won't know whether it'll be getting the 
full message or an error message.

A clarification of what's just printed on the server side and what's 
actually sent to the client would be appreciated.

Thanks
- Eric

Daniel Killebrew wrote:
> The server will just echo whatever you send it (once you send a full 
> line, one terminated by CRLF). So expect back what you send.
> 
> Daniel
> 
> Ofer Sadgat wrote:
>> When we send data as the client we end our response with \r\n\r\n so 
>> the server knows when we’re done. How do we know when the server is 
>> done sending its response?
>>
>> -Ofer
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> ee122 mailing list
>> ee122 at mailman.ICSI.Berkeley.EDU
>> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122
>>   
> _______________________________________________
> ee122 mailing list
> ee122 at mailman.ICSI.Berkeley.EDU
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122


More information about the ee122 mailing list