Press Javascript Button On Webpage Using Curl & Bash
My first post here, so please if this topic is answered elsewhere let me know. I found similar posts but didn't manage to use them to solve my problem. Background: I use a IPTV se
Solution 1:
You don't really need to click the button - you need to submit the form, or at least achieve the same effect.
Use cURL to do an HTTP POST to http://www.spicetvbox.ro/user/xbmc - something like this:
curl -b cookie.txt --data"run=UPDATEIP&id=89942" http://www.spicetvbox.ro/user/xbmcThis data is taken from the value of the form fields and the URL is taken from the action attribute of the form element. When --data (equivalent to -d) is specified, cURL performs a POST.
Post a Comment for "Press Javascript Button On Webpage Using Curl & Bash"