Export (0) Print
Expand All

Visual Basic: Internet Control

Visual Studio 6.0

GetHeader Method

See Also   Example   Applies To

The GetHeader method is used to retrieve header text from an HTTP file.

Syntax

object.GetHeader (hdrName)

The GetHeader method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
hdrName Optional. A string that specifies the header to be retrieved.

Return Type

String

Remarks

If no header is named, all of the headers will be returned.

The table below shows some of the typical headers available.

Header Description
Date
Returns the time and date of the document's transmission. The format of the returned data is Wednesday, 27-April-96 19:34:15 GMT.
MIME-version
Returns the MIME protocol version, which is currently 1.00.
Server
Returns the name of the server.
Content-length
Returns the length in bytes of the data.
Content-type
Returns the MIME Content-type of the data.
Last-modified
Returns the date and time of the document's last modification. The format of the returned data is Wednesday, 27-April-96 19:34:15 GMT.

Show:
© 2014 Microsoft