?

Log in

No account? Create an account
Posting HTML with flat protocol - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

Posting HTML with flat protocol [May. 4th, 2006|12:58 am]
LiveJournal Client Discussions
lj_clients
[jahr]
Hi.
I need to post preformatted HTML with postevent mode of the flat protocol. As far as I know I should use opt_preformatted option for this. But it seams it doesn't work.(

My HTTP request data is something like this:

mode=postevent&user=jahr&password=pwd&event=some_html&subject=test
&year=2006&mon=5&day=4&hour=23&min=20&opt_preformatted=1

Can anybody help me and show the correct way of using opt_preformatted property in flat protocol?
linkReply

Comments:
[User Picture]From: sapphirecat
2006-05-04 12:33 am (UTC)

Metadata needs "prop_" prefix

A lot of the metadata, including opt_preformatted, current_mood, and taglist (for tags support), need to be sent as prop_opt_preformatted, prop_current_mood, and prop_taglist.
(Reply) (Thread)
From: jahr
2006-05-04 08:09 am (UTC)

Re: Metadata needs "prop_" prefix

Thank you very much, it is working now.)
(Reply) (Parent) (Thread)
[User Picture]From: jwm
2006-05-04 03:19 am (UTC)

Wrap the post in lj-raw tags.

(Reply) (Thread)
From: jahr
2006-05-04 08:10 am (UTC)
Thank you very much, it is working now.)
(Reply) (Parent) (Thread)