GetNextHeader Method  
 

Continues header enumeration, returning the next header name and value.

Syntax

object.GetNextHeader( HeaderName, HeaderValue )

Parameters

HeaderName
A string buffer which will contain the name of the next header returned by the server.
HeaderValue
A string buffer which will contain the value of the next header returned by the server.

Return Value

Returns True if the method succeeds or False if the method fails.

Remarks

This method continues the enumeration that was started when the GetFirstHeader method was called. Repeatedly call GetNextHeader until it returns False indicating there are no more header values to return.

This method cannot be called while the browser is in the process of navigating to a new location. It will also fail if the current document is a local file or if the document text was set dynamically using the DocumentText property. There are no response headers available in a local context.

See Also

ClearHeaders Method, GetFirstHeader Method, GetHeader Method