WeOnlyDo! wodWebServer ActiveX - Headers Property
      
 

Description

Returns reference to request headers.


Property type

A WebHeaders object.  


Syntax

object.Headers



The Headers Property syntax has these parts:

Part Description
object An expression evaluating to an object of type WebRequest.

Remarks

This property returns reference to collection of all headers send 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