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.
foreach(string name in Request.Form)
{
Response.Write(Request.Form[name]);
}
You want Request.Form
There's a keys collection in there you can iterate through.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With