国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 編程設(shè)計 > 正文

如何偵測HTTP表頭信息?

2020-06-19 13:52:46
字體:
供稿:網(wǎng)友

<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

 %>

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 达拉特旗| 周至县| 昌乐县| 二手房| 酉阳| 航空| 萍乡市| 神农架林区| 宜宾县| 炎陵县| 土默特左旗| 苏尼特左旗| 扬中市| 华宁县| 万荣县| 旺苍县| 同德县| 凉山| 出国| 昌黎县| 玉田县| 弥渡县| 甘谷县| 垫江县| 丘北县| 民权县| 东港市| 湄潭县| 屏南县| 漾濞| 平罗县| 增城市| 丽水市| 文水县| 临武县| 祥云县| 绩溪县| 崇明县| 新竹县| 绵竹市| 赤峰市|