Created
October 22, 2010 05:26
-
-
Save shiba-yu36/639999 to your computer and use it in GitHub Desktop.
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
#!perl | |
use warnings; | |
use strict; | |
use LWP::UserAgent; | |
my $title = 'エントリタイトル'; | |
my $excerpt = 'エントリ要約ですよ'; | |
my $url = 'http://d.hatena.ne.jp/shibaTest/20101022/p1'; | |
my $blog_name = 'Dive into the Tech World!'; | |
my $ua = LWP::UserAgent->new; | |
$ua->timeout(10); | |
my $response = $ua->post( | |
'http://local.hatena.ne.jp:3000/shiba_yu36/20101022/1287724375', { | |
title => $title, | |
excerpt => $excerpt, | |
url => $url, | |
blog_name => $blog_name, | |
}, | |
); | |
use YAML; | |
warn YAML::Dump($response); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment