Skip to content

Instantly share code, notes, and snippets.

@grapswiz
Created February 9, 2011 05:04
Show Gist options
  • Save grapswiz/817911 to your computer and use it in GitHub Desktop.
Save grapswiz/817911 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use encoding 'utf-8', STDOUT => 'utf-8';
use WWW::Mechanize;
my $mech = new WWW::Mechanize;
my $username = 'username';
my $password = 'password';
my $url = 'https://afsap3e.u-aizu.ac.jp/cvps/';
$mech->get($url);
$mech->submit_form(
form_number => 1,
fields => {
'txt_id' => $username,
'txt_pw' => $password,
},
);
print $mech->content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment