Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP - Printing the entire request contents

Tags:

asp-classic

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.

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

Any tips on printing out the entire thing?

like image 403
Brian Webster Avatar asked Jan 18 '10 20:01

Brian Webster


2 Answers

Working:

For x = 1 to Request.Form.Count Response.Write x & ": " _ & Request.Form.Key(x) & "=" & Request.Form.Item(x) & "<BR>" Next

I have other Classic ASP code snippets here:

https://github.com/RaviRamDhali/programming-procedure/tree/master/Snippets/ASP

like image 80
Ravi Ram Avatar answered Oct 20 '22 13:10

Ravi Ram


Try this

For Each item In Request.Form
    Response.Write "Key: " & item & " - Value: " & Request.Form(item) & "<BR />"
Next
like image 17
Wil Avatar answered Oct 20 '22 14:10

Wil