Skip to content

TFPCustomHTTPClient.Post

Performs an HTTP POST request

Declaration

Source position: fphttpclient.pp line 305

public 
procedure Post(const URL: string; const Response: TStream);

procedure Post(const URL: string; Response: TStrings);

procedure Post(const URL: string; const LocalFileName: string);

function Post(const URL: string) : RawByteString;

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

Name Description
Get Performs an HTTP GET request
FormPost Performs an HTTP POST request with form data