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

TFPCustomHTTPClient.Post

Performs an HTTP POST request

Declaration

Source position: fphttpclient.pp line 293

public procedure TFPCustomHTTPClient.Post(

  const URL: string;

  const Response: TStream

);

procedure TFPCustomHTTPClient.Post(

  const URL: string;

  Response: TStrings

);

procedure TFPCustomHTTPClient.Post(

  const URL: string;

  const LocalFileName: string

);

function TFPCustomHTTPClient.Post(

  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

Performs an HTTP POST request to send data to the specified URL. The request body is taken from the RequestBody property.

Errors

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

See also

Get

  

Performs an HTTP GET request

FormPost

  

Performs an HTTP POST request with form data


Documentation generated on: Jan 27 2026