TFPCustomHTTPClient.FormPost procedure
Performs an HTTP POST request with form data
Declaration
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): RawByteStringArguments
URL | The URL to post the form data to |
FormData | The form data to post |
Response | Variable to store the response content as string |
Function result
The response content as string
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
