DGL https://delphigl.com/forum/ |
|
post to wordpress from delphi? https://delphigl.com/forum/viewtopic.php?f=19&t=8083 |
Seite 1 von 1 |
Autor: | noeska [ Fr Jan 02, 2009 16:39 ] |
Betreff des Beitrags: | post to wordpress from delphi? |
I wonder if it is possible to post from delphi to wordpress. Now wordress features an xml-rpc api. Dont know hot it works. So i ask here before going to examine the wordpress sourcecode. My main concern is being able to also use the custom fields feature available in wordpress. Why. Because the latest version of wordress features post revisions. And as such it could be made a version control system for software. So that leads me to 3 questions: 1. How should an xml-rpc message look to be undertand by wordpress. E.g. where can i find documentation on that. 2. How to easy handle xml-rpc messages with delphi. 3. How to integrate items in the delphi ide? |
Autor: | Lord Horazont [ Fr Jan 02, 2009 19:08 ] |
Betreff des Beitrags: | |
Hmm... Maybe you could simply use a normal POST-HTTP-Request via the TIdHTTP-Component. If you want to use XML-RPC: Did you already take a look on the XML-RPC page on wikipedia (en)?. As I can read there, you will also need the TIdHTTP component... Probably you will have to pass it also as a POST-Request, with the XML-RPC at some POST-Field... I think you will have to take a look at this page: http://codex.wordpress.org/XML-RPC_Support. And maybe another short look in the described xmlrpc.php from wordpress. I hope I was able to help you ![]() Greetings Lord Horazont |
Autor: | noeska [ Fr Jan 02, 2009 20:22 ] |
Betreff des Beitrags: | |
Ok i need to format what i want as xml. Looking at the xmlrpc.php i found out that: More specificaly i need to call the metaWeblog.newPost/editPost in order to use custom fields. I also get an idea on the xml tags i can use. Now lets see i can handcode an xml that works... and post that with indy. |
Autor: | Stucuk [ So Jan 04, 2009 09:17 ] |
Betreff des Beitrags: | |
Anything you can post via a web browser you can do with Indy. I recently updated a tool i made to extract images from Atlantica Online (For a Wiki im making) so it would login to the Wiki as me and upload the images via the Wiki using HTML's POST. Tho i had to make sure before sending POST/GET's that i had forced a disconnect (Using IdHTTP.Disconnect(False) as the Component can't notify the server... well there is no code under the procedures for it so it will do nothing if you tell it to notify the server) otherwise i would get Connection reset by Peer messages after doing multiple POST/GET's(As the server had disconected but the Indy components still seemed to think they were connected). |
Autor: | Lord Horazont [ So Jan 04, 2009 11:22 ] |
Betreff des Beitrags: | |
So, all you have to do is to fill in your data in XML... I think you do not need a huge library as LibXML to do that, it will be enough to concatenate a few strings together. Good luck ![]() Greetings Lord Horazont |
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |