?

Log in

No account? Create an account
AtomClient.pm LJ/Blogger Atom Perl package - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

AtomClient.pm LJ/Blogger Atom Perl package [Jun. 14th, 2005|04:37 pm]
LiveJournal Client Discussions
lj_clients
[trevmex]
I have good news. The LJ/Blogger Atom client I was coding is completed, and it works great in both Blogger and LJ blogs.

The package is called AtomClient.pm and I put it under the GNU LGPL.

Using it in your Perl code is simple, just do the following:

use AtomClient qw(postentry);

$result_msg = AtomClient::postentry("blog_url", "username", "password", "title", "content", "method");

Notes:
- "method" is either "basic" for Basic HTTP Auth, or "digest" for Digest HTTP Auth. If no method is sent, basic will be tried first, then digest if basic fails.
- This does NOT support WSSE since neither Blogger or LJ support WSSE at this time.


いいニューズがある!ずっとプログラムしたライブジャーナル・ブラーガ―・アトム・クライントができた!ブラーガ―とライブジャーナルの両方で良く使える。

パッケージはAtomClient.pmと言う。GNU LGPLであげる。

あなたのPerlコードに入り方はすごく簡単だよ。コードでこちを入って:

use AtomClient qw(postentry);

$result_msg = AtomClient::postentry("blog_url", "username", "password", "title", "content", "method");

ノート:
―"method"はベーシックHTTP公証の"basic"かダイジェストHTTP公証の"digest"だ。もし、"method"は真空になれば、ベーシックからダイジェストを使う。
―ブラーガやライブジャーナルはWSSEを使わないので今、このパッケージはWSSEを使わない。
linkReply

Comments:
[User Picture]From: quirrc
2005-06-14 10:14 pm (UTC)
Just for your info, LJ does support WSSE, blogger used to but stopped recently.
(Reply) (Thread)
From: trevmex
2005-06-14 11:13 pm (UTC)
Thanks for the update. The last time I worked on my client, LJ didn't support WSSE and Blogger did. Go figure.

Does anyone know why Blogger stopped supporting WSSE and went to Basic Auth of all things? Talk about going from pretty secure to amazingly insecure.

Well, I actually wrote a WSSE function, but I didn't add it to the package since I didn't think it would work with LJ or Blogger. If Blogger brings back WSSE support, I'll put it back in.
(Reply) (Parent) (Thread)
(Deleted comment)
From: trevmex
2005-06-16 07:16 am (UTC)
I have read arguments about why WSSE is great, but I have to agree that Digest Auth is just as good, and more secure. I wonder what the original reasoning behind WSSE was. It seems like they were trying to reinvent the wheel.
(Reply) (Parent) (Thread)
From: (Anonymous)
2006-03-18 11:08 am (UTC)

Thanks a lot !

Your script does the job, finally a normal way to access Atom feeds
(Reply) (Thread)
From: trevmex
2006-03-19 01:09 am (UTC)

Re: Thanks a lot !

Thanks. I am glad that you find it useful. I use the script to post my blog to both Blogger and LJ. It has been working find for me for some time, although there is a bug with sending large posts that I haven't solved yet.
(Reply) (Parent) (Thread)