javascript - how to submit an html form without browser automatically and periodically? -
javascript - how to submit an html form without browser automatically and periodically? -
my isp inquire me submit user/pass in web page each time connect internet. has maximum logon timeout (about 10 hours) kick me out , inquire me login again. need command prompt script/batchfile windows , linux automatically submit business relationship info without need of opening web browser.
the next html code source code of login page.
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <title>ee> login</title> </head> <body> <input name="username" type="text" value="username"/></td> <input name="password" type="password" value="passwordtext"/></td> <input type="submit" value="ok" /></td> <script type="text/javascript"> <!-- document.login.username.focus(); //--> </script> </body> </html>
an illustration curl tutorial:
curl --data "birthyear=1905&press=%20ok%20" http://www.example.com/when.cgi javascript bash authentication web
Comments
Post a Comment