wodHttpDLX ActiveX Control - Add Method
      
 

Description

Adds new variable item to the collection.


Return Type

None  


Syntax

object.Add VarName, VarValue, [ContentType]



The Add Method syntax has these parts:

Part Description
object An expression evaluating to an object of type HttpRequestFormUpload.
VarName Required. A String value. Name of the part in the multipart request.
VarValue Required. A String value. Contents of the part, as it will be seen by the server.
ContentType Optional. A Variant value. String expression as content-type to be specified for this part.

Remarks

Unlike AddFile method that pastes contents of the file to the request, Add method will put there some string value. Usually you will use it to specify additional information about upload file, such as your login or password. It really depends on the server script implementation on what it expects to be received.

To see sample of this looks in the real life, you can click here.