Scrive "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>: > >------- Original Message ------- > >From : Maurizio > Lotauro[mailto:[EMAIL PROTECTED] > >Sent : 9/19/2008 8:12:30 AM > >To : [email protected] > >Cc : > >Subject : RE: Re: [twsocket] Early web server response > > > > How I can avoid the second chunk or tell the server > that I'm starting a new send? > > The RFC provides the answer:
["chunked" encoding] This is not my case. For chunk I mean "a piece of the SendStream". > Thus, if you are sending the body preceded by a > Content-Length header (which is, I believe, the way > the HttpCli sends by default), then you must close > the connection immediately after detecting an error, > in order to start a new one. I cannot close the connection, it will not work with NTLM authentication. I don't know if the second piece is only in the socket buffer and not yet on the wire. In that case I should tell the socket to drop it, but I don't know how. It should be very similar to an Abort but without closing the connection. Bye, Maurizio. ---------------------------------------------------- This mail has been sent using Alpikom webmail system http://www.alpikom.it -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
