Back to product page
- Introduction
- License agreement
- Getting Started
- Objects
- Enumerations
- wodHttpDLX
- Methods
- Properties
- Authentication
- AutoRedirect
- BindIP
- Blocking
- CertErrors
- Certificate
- Compression
- Hostname
- HTTPversion
- IgnoreCertErrors
- KeepAlive
- LastError
- LastErrorText
- LocalCertBag
- Login
- MyHostname
- MyIP
- Notification
- Password
- Port
- ProxyAuthentication
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- Request
- Response
- Secure
- Socket
- SSLCipherList
- State
- Timeout
- URL
- UseIPv6
- Version
- Events
- wodHttpNotify
- HttpCookie
- HttpCookies
- HttpHeader
- HttpHeaders
- HttpRequest
- HttpRequestFormPost
- HttpRequestFormUpload
- HttpResponse
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Add method (HttpHeaders)
Adds new header to the collection.
Type
A HttpHeader object. Reference to new HttpHeader object that was created.Syntax
- Basic
object.Add (Name, [Value])
The Add(object,Name,Value) syntax has these parts:
The Add(object,Name,Value) syntax has these parts:
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"