Internet Direct (Indy)
Home
PreviousUpNext
TIdCustomHTTP.Get Method (string, TIdStream)

Retrieves the content for an HTTP resource.

Pascal
procedure Get(
    AURL: string; 
    AResponseContent: TIdStream
); overload;
Parameters 
Description 
AURL 
The universal resource locator to be retrieved.
 
AResponseContent 
Destination for the data retrieved from the URL

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

AURL is the fully-qualified location of the resource including the HTTP URL scheme identifier. For example: 

 

  sContent := AHttp.Get('http://www.somedomain.org/resource.html');

 

AResponseContent is the Stream that is the destination for data retrieved from the specified URL. For example: 

 

  AHttp.Get(AUrl, AResponseContent)

 

Get calls an overloaded variant of the method to perform the HTTP transfer. Get will raise an EAssertionFailed exception if the stream in AResponseContent is unassigned.

Exceptions 
Description 
EAssertionFailed 
Raised when the stream for the content of the response is unassigned. 

TIdCustomHTTP.Get 

TIdStream

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.