ASP – Printing the entire request contents

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?

Best Answer

Try this

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