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).

It is legal for a client to send a portion of the request and pause an
arbitrary amount of time before sending the rest; the length of the message
is not a TCP/IP parameter and so the Socket class doesn't know anything
about it.

AFAIK there is no way to make a single call to a framework method for what
you want; you'll have to wrap it in a method of your own.

On 3/28/06, Mike Andrews <[EMAIL PROTECTED]> wrote:
>
> Guys,
>
> I've been working on development of a webserver and I want to know how I
> can
> know that I have all of the data for a request.  If I post a form using
> the
> form's enctype attribute, the form is divided up (files and all) as
> delimited sections.  However I don't seem to get all of the data.  I loop
> until the Socket.Available property returns 0, but that is not  the end of
> the data.  If I just sit for a couple seconds, more data appears and then
> more still.  How can I use a TCPListener blocking Accept() method to get
> all
> of the data and know that my request has completed?
>
> Thanks,
> Mike
>
> ===================================
> 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