Topic Path: Symbol Reference > Classes > TIdCustomHTTP Class > TIdCustomHTTP Methods > Get Method > Get Method (string, array of SmallInt)
ContentsIndexHome
PreviousUpNext
TIdCustomHTTP.Get Method (string, array of SmallInt)

Retrieves the content for an HTTP resource.

function Get(
    AURL: string; 
    AIgnoreReplies: array of SmallInt
): string; overload;
Parameters 
Description 
AURL 
The universal resource locator to be retrieved.
 
AIgnoreReplies 
Response code to ignore as error when processing the HTTP response. 

string - Content for the requested resource.

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');

 

AIgnoreReplies is an array with numeric response codes to ignore as errors when handling the HTTP response. 

Get calls an overloaded variant of the method to perform the HTTP transfer using a TIdMemoryStream instance to capture the response content. The return value for the method is the String data read from the internal TIdMemoryStream instance.

TIdCustomHTTP.Get 

TIdMemoryStream

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.