国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 屏山县| 灌阳县| 孟州市| 淳安县| 冕宁县| 乌鲁木齐县| 基隆市| 德庆县| 文安县| 高碑店市| 新沂市| 肃宁县| 霞浦县| 屏南县| 镇江市| 滦南县| 渭源县| 威信县| 枣阳市| 凌源市| 忻州市| 金昌市| 赣州市| 虞城县| 格尔木市| 秭归县| 噶尔县| 旅游| 宁化县| 柳州市| 泊头市| 营口市| 温州市| 临安市| 三原县| 临朐县| 清徐县| 宁武县| 海淀区| 和顺县| 久治县|