Skip to content

Instantly share code, notes, and snippets.

@coela
Created September 29, 2011 08:34
Show Gist options
  • Save coela/1250298 to your computer and use it in GitHub Desktop.
Save coela/1250298 to your computer and use it in GitHub Desktop.
furl post
use Furl;
my $furl = Furl->new(
agent => 'MyGreatUA/2.0',
timeout => 10,
);
my %query = (
u => 'ebisama',
);
my $res = $furl->post(
'http://shindanmaker.com/157704', # url
[],# header
[ %query ], # form data (HashRef/FileHandle are also okay)
);
print $res->content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment