WeOnlyDo! wodWebServer ActiveX - Headers Property
      
 

Description

Returns reference to response 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 WebResponse.

Remarks

This property returns reference to collection of all headers that will be sent to the client in the response. wodWebServer will add few headers by itself (such as "Server", "Date", session "Set-Cookie" etc..) but you are free to add any other header you think may be needed.

If you're creating response by yourself, you should specify Content-Type header to describe type of information you're sending to the client.

wodWebServer will automatically add Content-Length header if you specified Body or Filename properties!

To access specific header from the collection, you can use code like this:

Debug.Print User.Response.Headers("Date").Value

or, for example

Dim h as WebHeader

For each h in User.Response.Headers
   Debug.Print h.Name & " " & h.Value
Next