| Programming C# C++ (7) Delphi (618) Java (8) JavaScript (30) perl (9) mysql (3) perl CGI (3) php (4) VBScript (1) Visual Basic (1) |
How can a perl script automate HTML form transmissions?
Question: How can a perl script automate HTML form transmissions (GET or POST)?Answer: See the two examples. The first one fills out a login form with 2 fields ('username', 'password') and does a GET request.The second snippet fills out the same form but transmits the data with a POST request. Keep in mind that the target URL has to be the URL that is specified in the action tag of the HTML form. This is usually different from the URL where the form is presented on.
Comments:
|