Back to product page

Headers property


Returns reference to request headers.

Type

WebHeaders object.

Syntax

  • Basic
object.Headers
The Headers(object) syntax has these parts:
objectAn expression evaluating to an object of type WebRequest

Remarks

This property returns reference to collection of all headers sent by the client in the request. You will usually find here Host header - list of Accepted languages, list of Accepted encodings etc.. To access specific header from the collection, you can use code like this:
 
Debug.Print User.Request.Headers("Host").Value
 

or, for example
 
Dim h as WebHeader
For each h in User.Request.Headers
 Debug.Print h.Name & " " & h.Value
Next
 


Platforms

Windows