November 8th, 2004

  • trevmex

Getting an Atom Feed from the feed URL (not the data URL)

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 from from What this request should do is return the feed (after which I will retreive the URL for posting).

Connection: close
Authorization: WSSE profile="UsernameToken"
User-Agent: Daily Blog Formatter (
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 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.