Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

Getting an Atom Feed from the feed URL (not the data URL) [Nov. 8th, 2004|11:50 am]
LiveJournal Client Discussions
Hello again,

I am working on accessing an LJ feed through the AtomAPI. I hope someone out there can help me out. I am sending the following request after discovering http://www.livejournal.com/interface/atomapi/username/feed from http://www.livejournal.com/users/username/data/atom from http://www.livejournal.com/users/username/. What this request should do is return the feed (after which I will retreive the service.post URL for posting).

GET http://www.livejournal.com/interface/atomapi/username/feed
Connection: close
Authorization: WSSE profile="UsernameToken"
User-Agent: Daily Blog Formatter (http://trevreport.org/blogForm.shtml)
Content-Length: 0
Content-Type: application/x.atom+xml
X-WSSE: UsernameToken Username="username", PasswordDigest="W9dSHn5BwJwQFHrD6tWr+JdBv4M=", Nonce="hhIbet0cbBsw9SQB1E/PG42U37s=", Created="2004-11-08T02:50:57Z"

There is nothing wrong with the Nonce, and the WSSE entry is well-formatted. In fact this request works perfectly in Blogger, but when I send the requst to LJ I get:

401 Authentication Failed

Digest authentication failed for this AtomAPI request.

You can try it out yourself at http://trevreport.org/blogForm.shtml. On the bottom of the page there is a little form for entering in your blog info, the output will be the HTTP requests and the resulting response.

If anyone can help I would be grateful.

From: trevmex
2004-11-08 10:42 pm (UTC)
Ah, now it makes sense. Thanks for clearing that up for me.

Is there any plans to add WSSE authentication in the future?
(Reply) (Parent) (Thread)