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 |
|
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 . |
|
Returns the MIME protocol version, which is currently 1.00. |
|
Returns the name of the server. |
|
Returns the length in bytes of the data. |
|
Returns the MIME Content-type of the data. |
|
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 . |