xmlrpc posting with Xpostulate
Apr. 6th, 2010 10:46 amOkay...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>L J.XMLRPC.postevent</methodName><params><p aram><value><struct><member><name>userna me</name><value><string>tonytraductor</s tring></value></member><member><name>pas sword</name><value><string>XXXXXXXX</str ing></value></member><member><name>subje ct</name><value><string>xmlrpc posting</string></value></member><member> <name>lineendings</name><value><string>p c</string><value></member><member><name>y ear</name><value><int>2010</int></value> </member><member><name>mon</name><value> <int>04</int></value></member><member><n ame>day</name><value><int>06</int></valu e></member><member><name>hour</name><val ue><int>10</int></value></member><member> <name>min</name><value><int>46</int></va lue></member><member><name>prop_current_ location</name><value><string>127.0.0.1< /string></value></member><member><name>p ropr_current_mood</name><value><string>f ocused</string></value></member><member> <name>prop_taglist</name><value><strin g>xmlrpc, xpostulate, wordpress, livejournal, dreamwidth, insanejournal</string></value></member><m ember><name>prop_currentmusic</name><val ue><string>none</string></value></member> <member><name>userjournal</name><value> <string>which journal?</string></value></member><membe r><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></val ue></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>L
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></val
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!