Click here to Skip to main content
15,888,293 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
How to Find Hidden Query string Fields From a url?

like this url
http://stusupport12.ignou.ac.in/Result.asp[^]

have hidden query string fields
http://stusupport12.ignou.ac.in/Result.asp?Program=MCA&eno=084736004&submit=Submit&hidden_submit=OK[^]
Posted
Comments
[no name] 11-Aug-11 12:09pm    
What do you mean by hidden query string?
Praveen Kullu 11-Aug-11 12:32pm    
What are you upto? trying to hack IGNOU? It's a university website.

The query strings are generated by the event in the button Ok. In this case if you enter "'" in the enrolment number you will receive an error, "The page cannot be displayed" check the error and you will discover the parameters by yourself

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'BCA'.
/Result.asp, line 92
Browser Type:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.107 Safari/535.1
Page:
POST 50 bytes to /Result.asp
POST Data:
Program=BCA&eno=%27&submit=Submit&hidden_submit=OK


If you are programming and checking the query string use

http://msdn.microsoft.com/en-us/library/ms150046.aspx[^]
 
Share this answer
 
Hi,

This is not a hidden QueryString, this is a HTTP Post (http://en.wikipedia.org/wiki/HTTP_POST[^]).

To access the Post data (from non-ASP.NET Postbacks!), you can use the Request.Form object.

Example:
If you have a HTML form which posts the following:
value1=hello&value2=world

then you can access the two variables by using this syntax:
string value1 = Request.Form["value1"];
string value2 = Request.Form["value2"];


If you have a form which was created using ASP.NET (using for example a <asp:button runat="server" />, you should ALWAYS use the ASP.NET eventhandling and you should never access the Request.Form directly!
Here is a example about how a ASP.NET postback should work: http://www.xefteri.com/articles/show.cfm?id=18[^]


Hope this helps.

Best regards and happy coding,
Chris
 
Share this answer
 

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