Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send POST request via URL

There is an asp page on which i enter my Rollno and press submit, next page shows my result. Below is the source of form of the page.

<form name="form1" method="post" action="Result.asp">

   <input name="Rollno" type="text" id="RollNo" size="15" maxlength="15">

   <input type="submit" name="Submit" value=" Search " onClick="return num();">

</form>

There is no way to see the result for all students therefore i want to loop through all roll numbers to see my position. But i am unable to do it by writing search.asp?Rollno=123456

How to send the request via url so that i can loop through all numbers?

like image 591
SMUsamaShah Avatar asked Apr 14 '26 06:04

SMUsamaShah


1 Answers

An HTTP POST request cannot be sent by using just an URL. (Except for the special case that there are no form fields and that the server doesn't care about the Content-type header.)

You should use an external program like wget or curl, which both can send either GET or POST requests.

like image 97
Roland Illig Avatar answered Apr 17 '26 07:04

Roland Illig