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

TFPCustomHTTPClient.SimpleGet

Static method to perform a simple HTTP GET request

Declaration

Source position: fphttpclient.pp line 287

public class procedure TFPCustomHTTPClient.SimpleGet(

  const AURL: string;

  Stream: TStream

);

class procedure TFPCustomHTTPClient.SimpleGet(

  const AURL: string;

  const LocalFileName: string

);

class procedure TFPCustomHTTPClient.SimpleGet(

  const AURL: string;

  Response: TStrings

);

class function TFPCustomHTTPClient.SimpleGet(

  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

Static utility method for performing a simple HTTP GET request without requiring an HTTP client instance. This is convenient for quick one-off requests.

Errors

May raise HTTP-related exceptions on connection errors.

See also

Get

  

Performs an HTTP GET request


Documentation generated on: Jan 27 2026