WGet a Page that Requires Logging in

Posted by Synetech inc. on Super User See other posts from Super User or by Synetech inc.
Published on 2011-02-21T14:41:08Z Indexed on 2011/02/21 15:27 UTC
Read the original article Hit count: 162

Filed under:
|
|

I’m trying to figure out a way to use WGET or a similar tool so that I can schedule a web page to be downloaded regularly as a sort of updating log. The problem is that the page requires that I be logged in otherwise I get a different page, generic. Further, the page does not take login information as GET parameters in the URL, it uses POST to log in on the login page and cookies to save the login information that’s read by the regular page.

I’m currently using GNU Wget 1.10.2 for Windows. I’ve tried using WGET’s cookie functionality but have had mixed results, usually skewing towards it not working.

Can anyone please advise on a way to accomplish this? Thanks a lot.

© Super User or respective owner

Related posts about Windows

Related posts about wget