tonybaldwin (
tonybaldwin) wrote2010-04-06 10:46 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Entry tags:
xmlrpc posting with Xpostulate
Okay...I've started to hack up the xmlrpc functions.
First, I had to replace all "<" and ">" in html tags in a post with"<" and ">",
and then, I have basically just handwritten out a relevant xml file.
Which looks like this:
<?xml version="1.0"?><methodCall><methodName>LJ.XMLRPC.postevent</methodName><params><param><value><struct><member><name>username</name><value><string>tonytraductor</string></value></member><member><name>password</name><value><string>XXXXXXXX</string></value></member><member><name>subject</name><value><string>xmlrpc posting</string></value></member><member><name>lineendings</name><value><string>pc</string><value></member><member><name>year</name><value><int>2010</int></value></member><member><name>mon</name><value><int>04</int></value></member><member><name>day</name><value><int>06</int></value></member><member><name>hour</name><value><int>10</int></value></member><member><name>min</name><value><int>46</int></value></member><member><name>prop_current_location</name><value><string>127.0.0.1</string></value></member><member><name>propr_current_mood</name><value><string>focused</string></value></member><member><name>prop_taglist</name><value><string>xmlrpc, xpostulate, wordpress, livejournal, dreamwidth, insanejournal</string></value></member><member><name>prop_currentmusic</name><value><string>none</string></value></member><member><name>userjournal</name><value><string>which journal?</string></value></member><member><name>event</name><value><string>Okay...I've started to hack up the xmlrpc functions.
First, I had to replace all "<" and ">" in html tags in a post with "<" and ">",
and then, I have basically just handwritten out a relevant xml file.
</string></value></member></struct></value></param></params></methodCall>
What I haven't done is tried to send such a file to a server, yet...
I'm not sure if the posting method has to be different from a flat post, in terms of simply sending this file as the post data...
More work...
But, hey, I'm working on it!
First, I had to replace all "<" and ">" in html tags in a post with"<" and ">",
and then, I have basically just handwritten out a relevant xml file.
Which looks like this:
<?xml version="1.0"?><methodCall><methodName>LJ.XMLRPC.postevent</methodName><params><param><value><struct><member><name>username</name><value><string>tonytraductor</string></value></member><member><name>password</name><value><string>XXXXXXXX</string></value></member><member><name>subject</name><value><string>xmlrpc posting</string></value></member><member><name>lineendings</name><value><string>pc</string><value></member><member><name>year</name><value><int>2010</int></value></member><member><name>mon</name><value><int>04</int></value></member><member><name>day</name><value><int>06</int></value></member><member><name>hour</name><value><int>10</int></value></member><member><name>min</name><value><int>46</int></value></member><member><name>prop_current_location</name><value><string>127.0.0.1</string></value></member><member><name>propr_current_mood</name><value><string>focused</string></value></member><member><name>prop_taglist</name><value><string>xmlrpc, xpostulate, wordpress, livejournal, dreamwidth, insanejournal</string></value></member><member><name>prop_currentmusic</name><value><string>none</string></value></member><member><name>userjournal</name><value><string>which journal?</string></value></member><member><name>event</name><value><string>Okay...I've started to hack up the xmlrpc functions.
First, I had to replace all "<" and ">" in html tags in a post with "<" and ">",
and then, I have basically just handwritten out a relevant xml file.
</string></value></member></struct></value></param></params></methodCall>
What I haven't done is tried to send such a file to a server, yet...
I'm not sure if the posting method has to be different from a flat post, in terms of simply sending this file as the post data...
More work...
But, hey, I'm working on it!
Re: success, at last!
I just signed up at scribbld (http://www.scribbld.net/users/tonybaldwin/).
I received the same response from scribbld as I did from iziblog when I tried to post with xmlrpc (server says: eof).
So, I have made both scribbld and iziblog continue to use flatposting in xpostulate, but, yes, just added scribbld.
I was just thinking...if I don't replace the <brackets in the text widget, but only convert them for setting the variable, then it won't matter if that is redone each time something is posted. You know, convert the tags in the background, not in the interface.
Re: success, at last!
Hmm, both of them work fine for me with xml-rpc. I guess you're still missing some small detail.
Re: success, at last!
Re: success, at last!
I've only posted to inksome, so far, with flatpost.
I'll see about fixing ink and scrib later...probably just need to take another minute detailed look at the process again, might have altered something somewhere inadvertently...
oddly, I released with izi, ink and scrib all on flat posting, still, with everything else using xmlrpc (which means the user has to be careful about thei r html tags...but I have implemented a conversion in both directions at the flick of a menu item).
I've got the wordpress working, but can't post to my own wordpress installation without disabling my spam protection (bad behavior plugin), oddly.
Bad Behavior blocks tcl http requests...
I'm in communication with the bad behavior folks.
Doesn't make sense to block a whole language.
I'm sure they're not blocking python urllib request, php, perl, cURL, etc.
Re: success, at last!
Hey, I can't find you on inksome.
Apparently you're not catness over there...