ASP-打印整个请求内容 [英] ASP - Printing the entire request contents

查看:63
本文介绍了ASP-打印整个请求内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试一些ASP代码,我需要快速打印当前的Request数据结构,我相信它是键/值对的数组.

I'm debugging some ASP code and I need to get a quick printout of the current Request datastructure, which I believe is an array of key/value pairs.

我看到Request.Form("key")是提取单个元素的方法.

I see that Request.Form("key") is the method for extracting individual elements.

关于打印整个内容的任何提示吗?

Any tips on printing out the entire thing?

推荐答案

尝试一下

For Each item In Request.Form
    Response.Write "Key: " & item & " - Value: " & Request.Form(item) & "<BR />"
Next

这篇关于ASP-打印整个请求内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆