Topic Path: Symbol Reference > Classes > TIdHTTPProtocol Class > TIdHTTPProtocol Methods > RetrieveHeaders Method
ContentsIndexHome
PreviousUpNext
TIdHTTPProtocol.RetrieveHeaders Method

Captures and processes headers in an HTTP response.

procedure RetrieveHeaders(
    AMaxHeaderCount: integer
);

RetrieveHeaders is a procedure that allows the HTTP protocol handler to read header values in an HTTP Response, and to store the raw headers in the Response for the protocol handler. 

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.