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

TFPCustomHTTPClient.SimplePost

Static method to perform a simple HTTP POST request

Declaration

Source position: fphttpclient.pp line 298

public class procedure TFPCustomHTTPClient.SimplePost(

  const URL: string;

  const Response: TStream

);

class procedure TFPCustomHTTPClient.SimplePost(

  const URL: string;

  Response: TStrings

);

class procedure TFPCustomHTTPClient.SimplePost(

  const URL: string;

  const LocalFileName: string

);

class function TFPCustomHTTPClient.SimplePost(

  const URL: string

):RawByteString;

Arguments

URL

  

The URL to post to

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to post to

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to post to

LocalFileName

  

Local filename to save the response to

Arguments

URL

  

The URL to post to

Function result

The response content as string

Description

Static utility method for performing a simple HTTP POST request without requiring an HTTP client instance.

Errors

May raise HTTP-related exceptions on connection errors.

See also

Post

  

Performs an HTTP POST request


Documentation generated on: Jan 27 2026