Skip to content

TFPCustomHTTPClient.FormPost

Performs an HTTP POST request with form data

Declaration

Source position: fphttpclient.pp line 364

public 
procedure FormPost(const URL: string; FormData: RawByteString; 
                  const Response: TStream);

procedure FormPost(const URL: string; FormData: TStrings; 
                  const Response: TStream);

procedure FormPost(const URL: string; const FormData: string; 
                  const Response: TStrings);

procedure FormPost(const URL: string; FormData: TStrings; 
                  const Response: TStrings);

function FormPost(const URL: string; const FormData: RawByteString)
                  : RawByteString;

function FormPost(const URL: string; FormData: TStrings) : RawByteString;

Description

Performs an HTTP POST request with form-encoded data. The form data is automatically encoded as application/x-www-form-urlencoded.

Errors

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

See also

Name Description
Post Performs an HTTP POST request
FileFormPost Performs an HTTP POST request with file upload