Vadim Zaliva (vzaliva) wrote in lj_clients,
Vadim Zaliva

ATOM posting

I am playing with ATOM posting to live journal. My first problem is that it does not return URL of newly created entry. In response to atom posting request I receive:

Transfer-Encoding: chunked
Content-Type: application/x.atom+xml

<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="">
  <title xmlns="">test title</title>
  <summary xmlns="">test body</summary>
  <link xmlns="" type="application/x.atom+xml" rel="service.edit" href="" title="test title"/>
  <link xmlns="" type="text/html" rel="alternate" href="" title="test title"/>

First problem is that Location header supposed to contain URL of newly created entry, something like:

Now it returns 'service.edit' URL which is wrong.

Second problem is that returned entry contains weird LINK element with empty HREF. From what I see there is no way to deduct from server response URL of newly created entry. How people get around this? Is it supposed to be like this or it is just a bug?

Good news is that it seems that when posting from ATOM date is correct and there is no timezone problems I've was encountering earlier when using XMLRPC.

  • 302: lj_dev

    In the interests of consolidating all LiveJournal development-related discussion, we're going to be closing down this community. The same…

  • Plain text to LJ

    I have an old blog from xanga that's in html/plain text and I want to move it over here. Which client would be the best to do this? I also want to…

  • ljKlient 0.2.0 Preview Release 1

    Today marks another milestone in the development of ljKlient — as the first preview of the 0.2 series is released.  Please go to the project…

  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened