Skip to content

Instantly share code, notes, and snippets.

@dtoma
Created November 26, 2013 14:40
Show Gist options
  • Save dtoma/7659427 to your computer and use it in GitHub Desktop.
Save dtoma/7659427 to your computer and use it in GitHub Desktop.
Travian 3.6 Login
my $url = URI->new("http://tc6.travian.fr/dorf1.php");
my $info = POST $url, [
'action' => 'dorf1.php',
'login' => 's1',
'name' => '[name]',
'password' => '[password]',
'login' => '',
'autologin' => 'ja',
];
$browser->request($info)->as_string;
die ("Login fail\n") unless $browser->cookie_jar->as_string;
print "Login Ok\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment