Skip to content

Instantly share code, notes, and snippets.

@shiba-yu36
Created October 22, 2010 05:26
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 shiba-yu36/639999 to your computer and use it in GitHub Desktop.
Save shiba-yu36/639999 to your computer and use it in GitHub Desktop.
#!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