Click here to Skip to main content
16,004,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi sir,
Can u tell me the steps to find the parameters of POST request to asp.net website. Consider one website that is having login page, that is authenticating using username and password by using the POST method request.

My question is, how to find the parameter name (i.e variable name of parameter). Kindly give me the solution for this problem.
Posted

1 solution

try this

C#
string[] keys = Request.Form.AllKeys; //this will give list of all parameters posted to page
var value = "";
for (int i= 0; i < keys.Length; i++) 
{   
   // to get the value you use
   value = Request.Form[keys[i]];
}

or directly

C#
var value = Request.Form[YourKey];


Go through this link
POST Data Sample
 
Share this answer
 
v3
Comments
Prabu Spark 6-Aug-14 7:59am    
Hi,
I am using the another third party website, he did not share the parameters, how can i know the name of parameters to be passed to that asp.net website?
pradiprenushe 6-Aug-14 8:11am    
If you are posting data to another site then you can get it from help documents provided by site.
If your site is getting data from other site through POST method then you must provide document with parameter list and their meanings(what data it denotes).
Prabu Spark 6-Aug-14 8:48am    
Hi,
Is it possible to trace the parameters of the site.
pradiprenushe 6-Aug-14 8:54am    
If it is done through javascript and keys are not encrypted then it is possible. If data is posted from server side then its hard process some kind of hacking.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900