Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Log in Rakuten

Thread Tools

Log in Rakuten

Posts: n/a

Anyone know how a Perl script can log onto Rakuten?

Here is what I do in my script:

$ua = LWP::UserAgent->new(
'agent' => $agent,
'cookie_jar' => {file => "cookies.txt", autosave => 1, ignore_discard => 1},
'requests_redirectable' => ['GET', 'HEAD', 'POST']

$request = HTTP::Request->new(POST => '');
$request->content('service_id=59&return_url=index.phtml%3F& u=mylogin&p=mypassword&auto_logout=true');
$response = $ua->request($request);
if (!$response->is_success) {
die $response->status_line;

After the $response->content indicates I am logged in, and the cookies
seems to be well set. But then when I access another url in Rakuten, it
has forgotten I am logged in! It is of course not the expected behaviour.
And it is not what happen with Mozilla or Internet Explorer.

Thanks for any help,


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to log independently of other webapps using log4j? Also, reading from log file from within servlet? unomystEz Java 0 11-19-2006 10:42 AM
My.Log.Writeexception not writing to Application Event Log. =?Utf-8?B?VG9tIFdpbmdlcnQ=?= ASP .Net 0 01-20-2006 06:41 PM
Log On Screen Changed. No More Auto-Log On. Jerry G. Computer Support 2 10-22-2004 09:58 AM
Urgent Pls: Facing problem in reading Log information from Log file, created by IIS Amratash ASP .Net 0 04-13-2004 09:08 AM
Need help on the Permissions needed to log to Event Log from ASP.NET? Henrik_the_boss ASP .Net 0 11-05-2003 10:14 AM