therealsix therealsix - 1 year ago 256
ASP.NET (C#) Question

Get all post data from request

Is there any way to get all the POST data sent to a .NET webpage?

Basically I am looking for the equivalent of the PHP $_POST array

The purpose being that I am receiving requests from a client that I have no control over and need to get all the data without knowing they keys.

Answer Source
foreach(string name in Request.Form)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download