Skip to content

Instantly share code, notes, and snippets.

@akiym
Created January 25, 2011 12:28
Show Gist options
  • Save akiym/794857 to your computer and use it in GitHub Desktop.
Save akiym/794857 to your computer and use it in GitHub Desktop.
Furl
use strict;
use warnings;
use Furl;
use LWP::UserAgent;
my $url = 'http://blog.livedoor.jp/dqnplus/';
{
my $furl = Furl->new;
my $res = $furl->get($url);
print $res->status_line, "\n";
}
{
my $ua = LWP::UserAgent->new;
my $res = $ua->get($url);
print $res->status_line, "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment