主页 > 知识库 > 如何侦测HTTP表头信息?

如何侦测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表头信息?》,本文关键词  ;如发现本文内容存在版权问题,烦请提供相关信息告之我们,我们将及时沟通与处理。本站内容系统采集于网络,涉及言论、版权与本站无关。
  • 相关文章
  • 收缩
    • 微信客服
    • 微信二维码
    • 电话咨询

    • 400-1100-266