I cannot get wget to successfully login to a page. I try to submit the details by POST to a login form but it doesn't pick up the correct page afterwards, just the standard page when not logged in. I picked up the form name from the source on this page, not sure if it's the correct one or not.
I am trying to retrieve the HTML from the page every 10mins and if something has changed then to send me an email with the updated page.
[root@serve~]# wget --post-data='username=DUMMYUSER&password=DUMMYPASSWORD' --save-cookies=my-cookies.txt --keep-session-cookies [url]https://www.example.com/widget_month.php[/url] --2010-01-18 14:51:32-- [url]https://www.example.com/widget_month.php[/url] Resolving [url]www.example.com[/url]... 72.29.XX.XX Connecting to [url]www.example.com¦72.29.XX.XX¦:443[/url]... connected. HTTP request sent, awaiting response... 200 OK Length: 15559 (15K) [text/html] Saving to: `widget_month.php'
100%[===========================================================================>] 15,559 63.6K/s in 0.2s