Scrive Arno Garrels <[EMAIL PROTECTED]>:

> Maurizio Lotauro wrote:
> > This will work with Basic bu not with NTLM because (IIRC) the
> > authentication phase is started by the server with the first 401.
> 
> Looks like sending body data must be delayed somehow, realy not
> nice!

I don't think so, the server answers after the body is started to send.
Maybe the send should paused when receiving data.

> Maybe OnSendBegin is the right place:

[...]

> In the event handler some wait loop (arrrgh!) that checks for state httpReady
> or timeout.

Double arrrgh! ;-)
I don't think it will works, the state is httpWaitingHeader during that phase,
and it is to late when it change.

> > Is there a way to empty the socket buffer?
> 
> Yes, CtrlSocket.DeleteBufferedData, but that will most likely 
> come far too late, not reliable as well.

Better, but there are still 1460 bytes that escapes :-(


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

Reply via email to