Subject: | little changes to make the module work again |
Date: | Wed, 1 May 2013 02:35:22 +0200 |
To: | bug-GPS-Garmin-Connect [...] rt.cpan.org |
From: | Markus Neese <m.neese [...] web.de> |
GPS-Garmin-Connect-0.01
perl v5.12.4
OSX 10.8.3
dear herbert,
i just tried to use you module, but it did not work.
its been some time since your last update, so i guess
parts of the website have changed since.
i took a deeper look at your module and found out
that just a few changes bring it back to life.
It seems that the login will just work via https:
Line 55:
_loginurl => 'http://connect.garmin.com/signin',
change to:
_loginurl => 'https://connect.garmin.com/signin',
There is another form element (id = "changeLanguageForm") prior to the "login"-form:
Line 84:
my $loginform = HTML::Form->parse($loginformres->content, $loginurl);
change to:
my @allforms = HTML::Form->parse($loginformres->content, $loginurl);
@allforms = grep $_->attr("id") eq "login", @allforms;
my $loginform = shift @allforms;
After these small changes your module works like charm again.
Hope it helps to update the module.
yours,
markus