wodHttpDLX ActiveX Control - Add Method
      
 

Description

Adds new header to the collection.


Return Type

A HttpHeader object.  Reference to new HttpHeader object that was created.


Syntax

object.Add (Name, [Value])



The Add Method syntax has these parts:

Part Description
object An expression evaluating to an object of type HttpHeaders.
Name Required. A String value. Name of the header.
Value Optional. A Variant value. Value that will be stored in the header.

Remarks

Add method will add new header to the collection of all headers, usually for the Request object. To add new header, you should use code like this:

wodHttp1.Request.Headers.Add "User-Agent", "WeOnlyDo! Http client component"

Returned reference to HttpHeader object can be ignored.