On Jul 24, 12:09 am, David <[email protected]> wrote:
> I've got a homemade atompub client that successfully posts to
> WordPress, but has [a probelem] with Habari 0.7.1.
>
> my posts never have the AtomPub request's entry's content's contents.
>
> The logs contain the following info lines:
>
> New post 30 (atompub-testing-4-no-markup-please-ignore); Type: entry;
> Status: published
>
> Here's data being sent in an example AtomPub POST 
> request:http://betterfool.com/atompubtest_data.txt
>
> Both Habari and WordPress respond with HTTP code 201 "created", but
> only WordPress shows the entry's title *and* contents.  Habari just
> makes a new post with the right title, but an empty body for the
> post.   I've tried various formats of data in the entry's content's
> data, but the results are always the same: fine for WordPress, no
> contents in Habari.


A little more info - given the atompubtest_data.txt file below (call
it "post.xml" now), if you send it to your WordPress blog like so:

curl -u 'user:password' -H "Content-Type: application/atom+xml" -X
POST -T post.xml http://wp_site/wp-app.php/posts

Wordpress responds that it succeeded and it did.  But if you send it
to your Habari site like so:

curl -u 'user:password' -H "Content-Type: application/atom+xml" -X
POST -T post.xml http://habari_site/atom/posts

Habari responds with 201, too, but only the title appears, the body of
the post doesn't.

... Lots of experimentation. Ah, getting rid of <p> helps. ...

It turns out that Habari would display the content if it doesn't have
any HTML.  (No <p>, <strong>, etc.)  I'd really like to allow
formatting in my posts.  How do I get Habari's AtomPub to accept
entries with HTML in their content element (like WordPress does)?

Again, thanks in advance!

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to