Captures and processes headers in an HTTP response.
procedure RetrieveHeaders( AMaxHeaderCount: integer );
RetrieveHeaders clears all headers in Response prior to reading new values.
RetrieveHeaders repeatedly calls the ReadLn method in the IOHandler for the HTTP client until no more header data is available on the HTTP client connection, or an EIdConnClosedGracefully is raised.
If an exception is raised, the HTTP client connection is closed.
When all headers have been read from the client, RetrieveHeaders causes the header values to be moved to their corresponding properties in Response.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.