Skip to content

TFPCustomHTTPClient.Get

Performs an HTTP GET request

Declaration

Source position: fphttpclient.pp line 289

public 
procedure Get(const AURL: string; Stream: TStream);

procedure Get(const AURL: string; const LocalFileName: string);

procedure Get(const AURL: string; Response: TStrings);

function Get(const AURL: string) : RawByteString;

Description

Performs an HTTP GET request to retrieve data from the specified URL. The response can be written to a stream, saved to a file, or returned as a string.

Errors

May raise HTTP-related exceptions on connection errors or invalid responses.

See also

Name Description
Post Performs an HTTP POST request
SimpleGet Static method to perform a simple HTTP GET request