This is a very simple project, but I don't have the time to troubleshoot. Here is what I need in a nutshell.
There is a certain web site that I need to check every day for certain links. The page that I need requires that you first log in, where a cookie is then set. I am trying to automate this process using PERL but am having some problems. If I try to run a get() through LWP before logging in, I get prompted to log in every time, as I'm not passing the cookie properly. I can't figure out how to get LWP to send the cookie to the site, so I can't automate the process as I'd like.
I will send the selected programmer an exact copy of the cookie generated by Internet Explorer when I manually log in, as well as the page link, and need back some very simple PERL code. I am looking for a VERY small program (I assume that someone smarter than I can do this whole thing in about ten lines of code, at the most) that returns the HTML from the desired page into a single variable. That's it. Easy, right? Here's exactly what I need:
Ideally this will be done with the LWP::Simple::Cookies module.
1) Take a cookie generated by IE and make any changes necessary, if any, for it to work in PERL
2) Pass it to the web site via PERL so the login page is not returned
3) Return the proper news page to me as a variable (NOT THE LOGIN PAGE THAT RESULTS BEFORE A COOKIE IS SET, BUT THE ONE AFTER IT)
4) Automatically push the expiration date of the cookie back so I don't have to worry about it expiring by the next time (maybe a day) that the script is run.
I'm sure that I could figure this out on my own after spending a few hours searching the net, so please no outrageous bids. Thanks for your help.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
This program needs to run under a Windows environment running ActivePerl with standard modules. I would prefer not to, but will install any other modules, provided they are included, as long as I don't need to compile them.