Scrive Arno Garrels <[EMAIL PROTECTED]>: > Maurizio Lotauro wrote: > > > I analyzed the communication using WireShark and this is what I > > observed. > > The server answer with 401 before the client has finished to send the > > xml. The client continue to send the rest of xml, > > Looking into THttpCli.SocketDataAvailable, OnDataPush seems to be > triggered in this case. LastResponse should the contain 401/407, > possibly you handle this case from that event?
Unfortunately no because FState is httpWaitingHeader. Now I'm trying to catch when the status code is set to 401, but I need at least the whole header. Then I should "emulate" what happen when the 401 is received after the whole send. It doesn't seem easy... 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