Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTP.Get
Retrieves an HTTP resource.

procedure Get(AURL: string; const AResponseContent: TStream); overload;
function Get(AURL: string): string; overload;
Parameters
AURL: string
The resource to be retrieved.

const AResponseContent: TStream
Destination for the data retrieved.

Description
Get is an overloaded method used to retrieve the file or data for the resource specified in AURL.

AURL is the complete, fully-qualified location of the resource.

AResponseContent is the TStream or descendant that is the destination for data retrieved using the specified URL .

Use Get(AUrl) to retrieve the data from AURL and return the contents as the String result of the function.

Use Get(AUrl, AResponseContent) to retrieve data from the URL and write the return values to the TStream descendant specified by AResponseContent.

Get relies on the DoRequest method to perform the HTTP transfer.