はてダラ

  1. ActivePerl
    1. http://www.activestate.com/Products/ActivePerl/
    2. Free Download
    3. ActivePerl 5.8.7.813
      1. Windows
        1. MSI 12.4MB
    4. ActivePerl-5.8.7.813-MSWin32-x86-148120.msi を起動
      1. I accept the terms in the License Agreement
      2. Next
      3. Browse
      4. Folder name: C:\usr\
      5. Finish
  2. 作業場所
    1. D:\home\hoge\diary ディレクトリを作成
  3. はてダラ
    1. http://d.hatena.ne.jp/hyuki/20051004#hw
    2. pw.pl という名称で、D:\home\hoge\diary に保存
    3. コマンドプロンプトを起動し、 perl hw.pl
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\home\hoge\diary>perl hw.pl
WARNING: Crypt::SSLeay is not found, use non-encrypted HTTP mode.
No files are posted.

D:\home\hoge\diary>ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay
d
 ====================
Install 'Crypt-SSLeay' version 0.51 in ActivePerl 5.8.7.813.
 ====================
Installing C:\usr\site\lib\auto\Crypt\SSLeay\SSLeay.bs
Installing C:\usr\site\lib\auto\Crypt\SSLeay\SSLeay.dll
Installing C:\usr\site\lib\auto\Crypt\SSLeay\SSLeay.exp
Installing C:\usr\site\lib\auto\Crypt\SSLeay\SSLeay.lib
Installing C:\usr\html\site\lib\Crypt\SSLeay.html
Files found in blib\arch: installing files in blib\lib into architecture depe
nt library tree
Installing C:\usr\site\lib\Crypt\SSLeay.pm
Installing C:\usr\site\lib\Crypt\SSLeay\Conn.pm
Installing C:\usr\site\lib\Crypt\SSLeay\CTX.pm
Installing C:\usr\site\lib\Crypt\SSLeay\Err.pm
Installing C:\usr\site\lib\Crypt\SSLeay\MainContext.pm
Installing C:\usr\site\lib\Crypt\SSLeay\X509.pm
Installing C:\usr\site\lib\Net\SSL.pm

 **************************************************************************
This software package uses strong cryptography, so even if it is created,
maintained and distributed from countries where it is legal to do this,
it falls under certain export/import and/or use restrictions in some
other parts of the world.

PLEASE REMEMBER THAT EXPORT/IMPORT AND/OR USE OF STRONG CRYPTOGRAPHY
SOFTWARE, PROVIDING CRYPTOGRAPHY HOOKS OR EVEN JUST COMMUNICATING
TECHNICAL DETAILS ABOUT CRYPTOGRAPHY SOFTWARE IS ILLEGAL IN SOME PARTS
OF THE WORLD. SO, WHEN YOU IMPORT THIS PACKAGE TO YOUR COUNTRY,
RE-DISTRIBUTE IT FROM THERE OR EVEN JUST EMAIL TECHNICAL SUGGESTIONS
OR EVEN SOURCE PATCHES TO THE AUTHOR OR OTHER PEOPLE YOU ARE STRONGLY
ADVISED TO PAY CLOSE ATTENTION TO ANY EXPORT/IMPORT AND/OR USE LAWS
WHICH APPLY TO YOU. THE AUTHORS OF OPENSSL ARE NOT LIABLE FOR ANY
VIOLATIONS YOU MAKE HERE. SO BE CAREFUL, IT IS YOUR RESPONSIBILITY.

CREDIT INFORMATION: This product includes cryptographic software
written by Eric A. Young (eay@cryptsoft.com). This product
includes software written by Tim J. Hudson (tjh@cryptsoft.com).
 **************************************************************************

Proceed with installation? [yes]

The library ssleay32.dll is needed to complete the installation,
and should be placed in a directory somewhere in your PATH
environment variable. I can fetch and install this for you,
if you don't already have it.

Fetch ssleay32.dll? [yes]
Fetching http://theoryx5.uwinnipeg.ca/ppms/scripts/ssleay32.dll ...  done!
Where should ssleay32.dll be placed? [C:\usr\bin]
ssleay32.dll has been successfully installed to C:/usr/bin

The library libeay32.dll is needed to complete the installation,
and should be placed in a directory somewhere in your PATH
environment variable. I can fetch and install this for you,
if you don't already have it.

Fetch libeay32.dll? [yes]
Fetching http://theoryx5.uwinnipeg.ca/ppms/scripts/libeay32.dll ...  done!
Where should libeay32.dll be placed? [C:/usr/bin]
libeay32.dll has been successfully installed to C:/usr/bin
Successfully installed Crypt-SSLeay version 0.51 in ActivePerl 5.8.7.813.

WindowsXP を再起動

D:\home\hoge\diary>perl hw.pl -u papa33 -p xxxxxxxxxx
Login to https://www.hatena.ne.jp/login as papa33.
Login OK.
Post 2005-10-28.
Old cookie. Retry login.
Login to https://www.hatena.ne.jp/login as papa33.
Login OK.
Old cookie. Retry login.
Login to https://www.hatena.ne.jp/login as papa33.
Login OK.
ERROR: try_it: Check username/password.

D:\home\hoge\diary>

ん?

D:\home\hoge\diary>dir c:\usr\bin\*.dll
 ドライブ C のボリューム ラベルがありません。
 ボリューム シリアル番号は 08C6-B778 です

 c:\usr\bin のディレクトリ

2005/10/28  16:14           843,776 libeay32.dll
2005/06/06  13:37           815,185 perl58.dll
2005/06/06  14:07            36,955 PerlEz.dll
2005/06/06  14:07            32,863 perlis.dll
2005/06/06  14:07            24,576 PerlMsg.dll
2005/06/06  14:07            61,531 PerlSE.dll
2005/10/28  16:14           159,744 ssleay32.dll               7 個のファイル           1,974,630 バイト
               0 個のディレクトリ  14,142,713,856 バイトの空き領域

う〜ん

あらかじめ環境変数「HTTP_PROXY」、「HTTPS_PROXY」などにプロキシを設定

ギブアップ