You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
483 B
Plaintext

<%
Private Function GetHeaders()
Dim item, d, sKey, sItem
Set d = CreateObject("Scripting.Dictionary")
d.RemoveAll
For Each item In Request.ServerVariables
If Left(UCase(item), 5) = "HTTP_" Then
sKey = Replace(Right(UCase(item), Len(item) - 5), "_", "-")
sItem = Request.ServerVariables(item)
If Not d.Exists(sKey) Then d.Add sKey, sItem
End If
Next
Set GetHeaders = d
End Function
%>