Created
January 25, 2011 12:28
-
-
Save akiym/794857 to your computer and use it in GitHub Desktop.
Furl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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