Is that true for a client as well? I thought the client had to keep the
connection open in order to receive the server's response. I know the
*server* can omit Content-Length and close the connection; but it seems that
would be not-very-useful for a client to do.

On 3/28/06, Steve Johnson <[EMAIL PROTECTED]> wrote:
>
> On 3/28/06, Eric Means <[EMAIL PROTECTED]> wrote:
> >
> > The client's request should include a Content-Length header. Your
> > webserver
> > should continue waiting on data until it has read that number of bytes
> > (not
> > including headers).
> >
>
> But if it does not (it's optional), then you must continue receiving until
> the socket is closed.  If there is no Content-Length header, then just
> keep
> looping until you receive zero bytes.
>
> --
> Steve Johnson
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>



--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to