Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPConnection.WriteHeader
Sends a protocol header from values in a list.

procedure WriteHeader(axHeader: TStrings);
Parameters
axHeader: TStrings
List of headers to write to the connection.

Description
WriteHeader is a procedure used to write the header items in axHeader to the connection. axHeader contains header items in NAME=VALUE form. WriteHeader will translate each line in axHeader to the HTTP header form NAME: VALUE.

WriteHeader calls WriteLn for each header item in axHeader. An additional blank line is written to the connection at the end of the header list.