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
Cookies property (HttpRequest)
Holds request cookies.
Type
A HttpCookies objectSyntax
- Basic
object.Cookies
The Cookies(object) syntax has these parts:
The Cookies(object) syntax has these parts:
object | An expression evaluating to an object of type HttpRequest. |
Remarks
This property will read and return collection of all cookies that will be sent to the server. It is created first time you access it by reading headers collection from Request object, and populating it with 'Cookie' headers. Those headers are removed from collection of headers, parsed, and put into cookies collection. Each cookie has its Name and its Value, and possibly few Attributes describing the cookie, such as Path, Expiry date etc.. To copy cookies from previous response to new request, you can use this simple code:Dim oldcookie As HttpCookie
For Each oldcookie In Http1.Response.Cookies
Http1.Request.Cookies.Add oldcookie.Name, oldcookie.Value
Next