October 28th, 2004

  • trevmex

LJ and Atom

I am working on a perl client to post to LJ and Blogger using the Atom API. It has been like pulling teeth getting it to work, but I now have posting working through Atom in Blogger using the following XML:

<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<generator url="http://trevreport.org/blogForm.shtml">blogForm</generator>
<title mode="escaped" type="text/html">Test Title</title>
<issued>$now</issued>
<content mode="escaped" type="text/html">Some Crazy Text</content>
</entry>

When I send the POST request to the discovered atom URL (from the blog's HTML header) I get an Atom feed back, as if I sent a GET.

Can someone point out the obvious mistake I am making. If you want to see all the nitty gritty, the perl code is at http://trevreport.org/blogTest.txt .

Any help would be great!