Em Andamento

(repost) need a perl script to automate logging in to an [url removed, login to view] form

I need a Perl script to automate logging into an [url removed, login to view] website that requires a login. Basically it's a website where you log in with an e-mail address and a password, and once you're logged in, you can access different pages. I just need a Perl script that uses WWW::Mechanize or LWP::UserAgent to log in to the form, so that afterwards I can download pages that are normally not accessible.

(This is just to automate logins for periodically checking available information, not spamming or other b.s. :) )

Now normally I can do this myself, logging in to a form by submitting a POST request and saving the cookies. However the page where I'm trying to do this login, is an [url removed, login to view] page, which means there are hidden variables like __VIEWSTATE and __EVENTVALIDATION and other things that make it more complicated. I tried reading those variables from the login page and submitting them as part of the request, but that didn't work, so perhaps this calls for more Perl skill than I possess.

I don't want to provide the login/password in the public project description, so I'll email the login information to anyone after you accept the project. If you find that it can't be automated easily after all, you can just cancel within the 24-hour "no penalty cancellation" window.

Thanks and I look forward to working with you! :)

## Deliverables

I need some Perl code that logs it in to a website by submitting an e-mail address and password and storing the cookies that get set as a result, so that afterwards, the UserAgent object is able to download pages from that site that require a login.

This MUST WORK on CENTOS 5.4 with Perl v5.8.8. If you're developing and testing on a slightly different version, that's fine, but I can't use it unless it works on my system as well. Some scripts that use WWW::Mechanize will work on Windows perl but failed on my CentOS system, so I recommend testing your script on something that is similar to my setup.

I don't want to provide the login/password in the public project description, so I'll email the login information to anyone after you accept the project. If you find that it can't be automated easily after all, you can just cancel within the 24-hour "no penalty cancellation" window.

## Platform

The script has to work on my system which is CentOS 5.4 with Perl v5.8.8.

Also, I have version [url removed, login to view] of WWW::Mechanize installed, which is not the most recent version. The reason for this is because if I install a more recent version of WWW::Mechanize (I think [url removed, login to view] is the latest version available), I get an error that my LWP::UserAgent is not recent enough:

********

peacefire:/var/www/html# perl -e "use WWW::Mechanize;"

LWP::UserAgent version [url removed, login to view] required--this is only version [url removed, login to view] at /usr/lib/perl5/vendor_perl/5.8.8/WWW/[url removed, login to view] line 106.

********

and I am nervous about changing the LWP::UserAgent version on my system because so many scripts depend on it. WWW::Mechanize version [url removed, login to view] is compatible with my current version of LWP::UserAgent.

So, ideally a solution should work with WWW::Mechanize version [url removed, login to view] so that I don't have to upgrade LWP::UserAgent.

Habilidades: Perl

Ver mais: find asp net, perl get, find perl, need project website testing, trying get, automate email, access script error, asp access html, post form hidden, net perl, address different script, windows log script, perl download script, log reason, perl email html, form saving, object form, repost html, system upgrade html, net object error, perl request, centos perl, testing repost, script automate, hidden form perl

Acerca do Empregador:
( 128 comentários ) Bellevue, United States

ID do Projeto: #2982230

Premiar a:

sukarelawatilx

See private message.

$7 USD em 14 dias
(3 Avaliações)
0.5

3 freelancers estão ofertando em média $42 para este trabalho

damirmarkovic

See private message.

$51 USD in 14 dias
(37 Comentários)
4.7
ilnlivw

See private message.

$68 USD in 14 dias
(0 Comentários)
0.0