P
Paul
hi, greetings,
I am trying to write a script to login www.dell.com/myaccount, so I can
track my order automatically. Following is the first step to login
https://membership.dell.com/DellLogin/GA/login.aspx, where the user
should input username and password. there is no compile error in my
scipit. My question is that I can not login the website using this
script. I printed the content, it showed that the server always told me
that "An Error has Occurred
An error has occurred while trying to validate your e-mail and
password. Please try again later. ". But when I tried to login with a
wrong password, the server will tell me "Please correct the following
problem(s) before continuing.
The E-mail address and password combination you entered does not match
any accounts on record. Please try again. To create an account, click
here. Note that If you submit incorrect password information 6 times,
your account will be locked. "
So it seems that the script somepart works. But I dont know how to fix
it so that I can login the website.
The passord and email adress in the script are the ture username and
password, you can use them to login the website using IE.
Any help are highly appreciated. Thank you so much for you guys.
////////////////////////////////////////////////////////
use strict;
use LWP;
use HTTP::Request::Common;
use HTTP::Cookies;
my $LOGIN='https://membership.dell.com/DellLogin/GA/login.aspx';
my $sbviewstate='dDwtMjA2Mjg0NzcwMjs7Pg==';
my $ua = LWP::UserAgent->new;
$ua->cookie_jar(new HTTP::Cookies);
my $newagent = 'Mozilla/4.51 [en]';
$ua->agent($newagent);
my $response = $ua->request(GET($LOGIN));
my $request = POST ($LOGIN,
[ _txtUserName => '(e-mail address removed)',
_txtPassword => '4testpurpose',
__EVENTTARGET=>'subBtn',
__EVENTARGUMENT=>'',
__VIEWSTATE=>$sbviewstate,
],
REFERER => $LOGIN);
$response = $ua->request($request);
print $response->content;
/////////////////////////////////////////////////////////////////////////
I am trying to write a script to login www.dell.com/myaccount, so I can
track my order automatically. Following is the first step to login
https://membership.dell.com/DellLogin/GA/login.aspx, where the user
should input username and password. there is no compile error in my
scipit. My question is that I can not login the website using this
script. I printed the content, it showed that the server always told me
that "An Error has Occurred
An error has occurred while trying to validate your e-mail and
password. Please try again later. ". But when I tried to login with a
wrong password, the server will tell me "Please correct the following
problem(s) before continuing.
The E-mail address and password combination you entered does not match
any accounts on record. Please try again. To create an account, click
here. Note that If you submit incorrect password information 6 times,
your account will be locked. "
So it seems that the script somepart works. But I dont know how to fix
it so that I can login the website.
The passord and email adress in the script are the ture username and
password, you can use them to login the website using IE.
Any help are highly appreciated. Thank you so much for you guys.
////////////////////////////////////////////////////////
use strict;
use LWP;
use HTTP::Request::Common;
use HTTP::Cookies;
my $LOGIN='https://membership.dell.com/DellLogin/GA/login.aspx';
my $sbviewstate='dDwtMjA2Mjg0NzcwMjs7Pg==';
my $ua = LWP::UserAgent->new;
$ua->cookie_jar(new HTTP::Cookies);
my $newagent = 'Mozilla/4.51 [en]';
$ua->agent($newagent);
my $response = $ua->request(GET($LOGIN));
my $request = POST ($LOGIN,
[ _txtUserName => '(e-mail address removed)',
_txtPassword => '4testpurpose',
__EVENTTARGET=>'subBtn',
__EVENTARGUMENT=>'',
__VIEWSTATE=>$sbviewstate,
],
REFERER => $LOGIN);
$response = $ua->request($request);
print $response->content;
/////////////////////////////////////////////////////////////////////////