TFPCustomHTTPClient.Get procedure
Performs an HTTP GET request
Declaration
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): RawByteStringArguments
AURL | The URL to retrieve |
Stream | Stream to write the response content to |
LocalFileName | Local filename to save the response to |
Response | Variable to store the response content as string |
Function result
The response content as string
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
