脚本宝典收集整理的这篇文章主要介绍了如何侦测HTTP表头信息?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
<html>
<head>
<title> 千花飞舞之HTTP headERS侦测< /title>
</head>
<body>
<TABLE BORDER=1>
<tr><td VALIGN=TOP><B>变量</B></td>
<td VALIGN=TOP><B>值</B></td></tr>
<% For Each key In Request.ServerVariables %>
<tr>
<td><% = key %></td>
<td>
<%
If Request.ServerVariables(key) = "" Then
If GetAttribute(key) = "" Then
Response.Write " "
Else
Response.Write GetAttribute(key)
End If
Else
Response.Write Request.ServerVariables(key)
End If
Response.Write "</td>"
%>
</tr>
<% Next %>
</TABLE>
</body></html>
<%
Function GetAttribute(AttrName)
Dim AllAttrs
Dim RealAttrName
Dim Location
Dim Result
AllAttrs = Request.ServerVariables("ALL_HTTP")
RealAttrName = AttrName
Location = instr(AllAttrs, RealAttrName & ":")
If Location <= 0 Then
GetAttribute = ""
Exit Function
End If
Result = mid(AllAttrs, Location + Len(RealAttrName) + 1)
Location = instr(Result, chr(10))
If Location <= 0 Then Location = len(Result) + 1
GetAttribute = left(Result, Location - 1)
End Function
%>
以上是脚本宝典为你收集整理的如何侦测HTTP表头信息?全部内容,希望文章能够帮你解决如何侦测HTTP表头信息?所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。