asp如何显示全部的环境变量?

时间:2010-06-08 09:34:00 

asp如何显示全部的环境变量?

<%@Language="VBScript"%>
<%
dim Header, Footer
header = "<table border=""1"" align=""center"" width=""400"">"
footer = "</table>"
Response.Write("cookies" & header)
for each item in Request.Cookies 
Response.Write("<tr><td>" & item & "</td><td>" & Request.Cookies(item) & "</td>")
next
Response.Write(footer & "server vars" & header)
for each item in request.servervariables
Response.Write("<tr><td>" & item & "</td><td>" & Request.ServerVariables(item) & "</td></tr>")
next
response.write(footer & "session contents" & header)
for each item in session.contents
Response.Write("<tr><td>" & item & "</td><td>" & session(item) & "</td></tr>")
next
response.write(footer & "application contents" & header)
if Len(application.contents) = 0 then
for each item in application.contents
Response.Write("<tr><td>" & item & "</td><td>" & application(item) & "</td></tr>")
next
%>
<table border="0">
<tr><td><b>Script engine : </td>
<td><%= scriptengine() %></td>
<td><%= scriptenginemajorversion() %>:</td>
<td><%=scriptengineminorversion() %></td>
<td><%= scriptenginebuildversion() %></td></tr></table>

标签:变量,response
0
投稿

猜你喜欢

  • 很全面的Mysql数据库、数据库表、数据基础操作笔记(含代码)

    2024-01-15 11:19:42
  • Python中字典的基本知识初步介绍

    2021-08-25 11:41:40
  • 一次性压缩Sqlserver2005中所有库日志的存储过程

    2024-01-28 13:40:13
  • python 3.7.0 下pillow安装方法

    2023-07-09 09:47:49
  • Python实现哲学家就餐问题实例代码

    2022-09-20 14:10:49
  • python算法学习之基数排序实例

    2023-01-07 05:24:52
  • Python序列化与反序列化pickle用法实例

    2022-04-14 11:44:06
  • CSS布局之浮动(一)两列布局

    2008-08-18 21:24:00
  • Django 设置多环境配置文件载入问题

    2023-09-08 09:16:19
  • pygame游戏之旅 添加游戏界面按键图形

    2023-06-30 21:48:38
  • Python对象循环引用垃圾回收算法详情

    2021-03-02 23:29:14
  • mysql 安装使用小记

    2011-02-23 12:33:00
  • Python多线程和队列操作实例

    2023-02-06 07:23:54
  • Go语言学习技巧之如何合理使用Pool

    2024-02-05 08:04:47
  • php写入mysql中文乱码的实例解决方法

    2023-10-10 01:36:49
  • 使用pandas模块读取csv文件和excel表格,并用matplotlib画图的方法

    2023-10-04 14:42:58
  • python3去掉string中的标点符号方法

    2021-06-27 01:29:45
  • VBScript GetObject 函数用法介绍

    2008-01-30 17:00:00
  • 用python写asp详细讲解

    2022-02-26 13:21:36
  • Python实现对字典分别按键(key)和值(value)进行排序的方法分析

    2021-06-05 00:36:32
  • asp之家 网络编程 m.aspxhome.com