Skip to content

Instantly share code, notes, and snippets.

@akiym
Created January 25, 2011 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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