System.Net.Mime.TMultipartFormData.AddField

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddField(const AField, AValue: string; const AContentType: string = '';
AHeaders: TStrings = nil);

C++

void __fastcall AddField(const System::UnicodeString AField, const System::UnicodeString AValue, const System::UnicodeString AContentType = System::UnicodeString(), System::Classes::TStrings* AHeaders = (System::Classes::TStrings*)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Net.Mime.pas
System.Net.Mime.hpp
System.Net.Mime TMultipartFormData

Description

Adds a string field to the form data.

AddField has the following parameters:

  • AField: Refers to the field name.
  • AValue: A string that specifies the value of the field.
  • AContentType: An optional Content-Type attribute value for the field. If not specified, then application/octet-stream will be used.
  • AHeaders: Optional parameter that allows specifying additional headers for a section of multipart/form-data content. The default value is Nil.

See Also