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

TFPCustomHTTPClient.FormPost

Performs an HTTP POST request with form data

Declaration

Source position: fphttpclient.pp line 352

public procedure TFPCustomHTTPClient.FormPost(

  const URL: string;

  FormData: RawByteString;

  const Response: TStream

);

procedure TFPCustomHTTPClient.FormPost(

  const URL: string;

  FormData: TStrings;

  const Response: TStream

);

procedure TFPCustomHTTPClient.FormPost(

  const URL: string;

  const FormData: string;

  const Response: TStrings

);

procedure TFPCustomHTTPClient.FormPost(

  const URL: string;

  FormData: TStrings;

  const Response: TStrings

);

function TFPCustomHTTPClient.FormPost(

  const URL: string;

  const FormData: RawByteString

):RawByteString;

function TFPCustomHTTPClient.FormPost(

  const URL: string;

  FormData: TStrings

):RawByteString;

Arguments

URL

  

The URL to post the form data to

FormData

  

The form data to post

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to post the form data to

FormData

  

The form data to post

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to post the form data to

FormData

  

The form data to post

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to post the form data to

FormData

  

The form data to post

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to post the form data to

FormData

  

The form data to post

Function result

The response content as string

Arguments

URL

  

The URL to post the form data to

FormData

  

The form data to post

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

Post

  

Performs an HTTP POST request

FileFormPost

  

Performs an HTTP POST request with file upload


Documentation generated on: Jan 27 2026