To geniustom: 摘錄自Indy 9 Help: TIdCustomHTTP.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. --------------------------------------------------------------------
所以這兩種呼叫方式:
procedure Get(AURL: string; const AResponseContent: TStream); overload;
function Get(AURL: string): string; overload;
都應該是可以用的。