Unit 'fpHTTPClient' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPCustomHTTPClient.Get

Performs an HTTP GET request

Declaration

Source position: fphttpclient.pp line 277

public procedure TFPCustomHTTPClient.Get(

  const AURL: string;

  Stream: TStream

);

procedure TFPCustomHTTPClient.Get(

  const AURL: string;

  const LocalFileName: string

);

procedure TFPCustomHTTPClient.Get(

  const AURL: string;

  Response: TStrings

);

function TFPCustomHTTPClient.Get(

  const AURL: string

):RawByteString;

Arguments

AURL

  

The URL to retrieve

Stream

  

Stream to write the response content to

Arguments

AURL

  

The URL to retrieve

LocalFileName

  

Local filename to save the response to

Arguments

AURL

  

The URL to retrieve

Response

  

Variable to store the response content as string

Arguments

AURL

  

The URL to retrieve

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

Post

  

Performs an HTTP POST request

SimpleGet

  

Static method to perform a simple HTTP GET request


Documentation generated on: Jan 27 2026