Must I generate an xml file to send a post over http?
Or is there any means of sending a flat post?
I'm writing a client (http://baldwinsoftware.com/xpost.html), and the simpler the better, I feel.
I have it using flat post method to post to livejournal (&clones), and would like to include WP (and blogger) features (since I have blogs on all of the above).
I'm writing it in tcl/tk.
I know there are xmlrpc plugins in existence, but, I'm just trying to avoid working with them...(Lazy much?)
I don't really see the advantage in using xml for blog posting...never have quite figured out why everybody likes that.
Here's my current posting proc
proc ljpost {} {
set ptext [.txt.txt get 1.0 {end -1c}]
set login [::http::formatQuery mode login user $::ljname password $::ljpswd ]
set log [http::geturl http://www.livejournal.com/interface/flat:80 -query $login]
set post [::http::formatQuery mode postevent auth_method clear user $::ljname password $::ljpswd subject $::subject security $::priv prop_current_location $::loc year $::year mon $::mon day $::day hour $::hour min $::min prop_current_music $::tunes prop_current_mood $::mood prop_taglist $::tags usejournal $::usej event $ptext ]
set plength [string length $post]
set dopost [http::geturl http://www.livejournal.com/interface/flat:80 -query $post]
set ljmta [http::meta $dopost]
set ljl [http::size $dopost]
set ljstat [http::status $dopost]
toplevel .rsp
wm title .rsp "Post Status"
grid [tk::label .rsp.lbl -text "Frank says: $ljstat\nPost length: $ljl"]
grid [tk::button .rsp.view -text "View Journal" -command {
set ljv "http://$::usej.livejournal.com"
exec $::brow $ljv &
}]\
[tk::button .rsp.ok -text "DONE" -command {destroy .rsp}]
}
(modified for dreamwidth, insanejournal, deadjournal, etc.)
Seems much simpler than having to generate an xml file from the data to send. No?
Generating an xml file means changing all "<" to "& l t ;" , etc. inside the post, then writing out all the params value string blah blah blah...
It just seems needlessly verbose to me.
Is there no means to send a simple flat post with WP?
I find no documentation on any kind of method for posting other than xmlrpc.
thanks
./tony