Hi Everyone, Could someone assist me on this requirement.
Basically I would like to stop the HttpCli proceed to next/redirect location, when it received the very first request. Because the first received data more meaningful for me. Knowing that by using FOnLocationChange, I can copy the FRcvdHeader data, but it require more time to complete the 1 complete transaction. procedure THttpCli.GetHeaderLineNext; ... ... if FLastResponse = '' then begin if FLocationFlag then begin TriggerHeaderEnd; FReceiveLen := 0; FHeaderLineCount := 0; FBodyLineCount := 0; FCtrlSocket.OnSessionClosed := LocationSessionClosed; FCtrlSocket.Close; Exit; ... .... Thx in advance. Regards KL Chin -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be