Export (0) Print
Expand All

Name Property

Visual Studio .NET 2003

Gets or sets the name part of an HTTP header name-value pair.

strName = Header.Name [ = strName]

Return value

The name part of the HTTP header.

Remarks

A Header object can represent either a response header field or a request header field. See the HTTP header fields reference topic for more information about specific field values.

Examples

 
''''''''''''''''''''''''''''''''''''''''''''''''''
' Procedure to print the value of the name property
' for each header object in a headers collection.
'
Sub PrintHeaderNames(oHeaders)
   Dim oHeader, lCount, strMessage
   
   strMessage = "Message header fields:" & vbCrLf
   For lCount = 1 to (oHeaders.Count)
      Set oHeader = oHeaders.Item(lCount)
      strMessage = strMessage & oHeader.Name & vbCrLf
   Next
   Call Test.Trace(strMessage)
End Sub
 

See Also

Header object | HTTP Header Fields Reference

Show:
© 2014 Microsoft