Hi, All!
I'm investigating the HttpProt.pas for some reason and stuck at a strangeness.
The GetHeaderLineNext is called from SocketSessionConnected. At this
moment there may be no data received yet, so the 'if':
if FLastResponse = '' then begin
in the GetHeaderLineNext is true, and the event
The GetHeaderLineNext is called from SocketSessionConnected.
It is not called from there but placeholder FNext is assigned
with function GetHeaderLineNext().
FNext is the called later from SocketDataAvailable.
--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html