TTMSFNCRESTClientRequest.AddFormData Method
Adds a text form field to a multipart request body.
API unit family: TMSFNCRESTClient
Declaring type: TTMSFNCRESTClientRequest
Syntax
procedure AddFormData(const AName: string; const AValue: string = '');
void __fastcall AddFormData(const System::UnicodeString AName, const System::UnicodeString AValue = System::UnicodeString());
Remarks
Switches the request to multipart mode and sets CustomHeaders to True. Set Method to rmPOSTMULTIPART (or another multipart method) before executing.
Parameters
| Name | Description |
|---|---|
AName |
Name of the form field. |
AValue |
Value of the form field. |