I want to ping automatically to pingomatic, when ever i update my blog, as it is done by the wordpress. Pingomatic uses the XMLRPC, but I don't know how it works. Can someone help me.
+1
A:
Seems quite easy at first sight. The form there is a plain HTML form with method=get and I don't see any XMLRPC code around. I'd say you just fill in the form once, click to submit and then copy the resulting URL from the address bar into a PHP http_get()
or fopen()
. The result page says "Bookmark this page and come back to it later to automatically re-ping", so I'm pretty sure a plain GET request is enough and there is no other magic involved.
djn
2010-02-08 01:06:31
Oh yes, you are right. The form over there uses the get method. But will it be the right way to ping it in such manner. I have studied about some of the XMLRPC protocol, which uses POST to ping the rpc servers. For pingomatic that is http://rpc.pingomatic.com/ . Do you have any idea how to work with this, and what is the format it accepts ?
Chetan sharma
2010-02-08 19:50:26
I never really cared about XMLRPC, but I googled around and ended up looking at the source of Weblog_Pinger (http://workbench.cadenhead.org/weblog-pinger/). I still don't see any practical advantage in using such a roundabout way to just the same effect - it sure seems harder to debug to me.As for the format, take a peek at http://codingforums.com/showthread.php?t=141370 or http://www.bpsdesigns.co.uk/blog/tutorials/how-to-send-xmlrpc-pings-from-classic-asp/ , still unconvincing but at least written in plaintext.
djn
2010-02-08 21:01:59
A:
You can use the function described on this blog:
http://www.barattalo.it/2010/02/24/ping-pingomatic-com-services-with-php/
and put the call inside a php that you call with a cron job every night, passing the feed of the blog to the function.
Pons
2010-02-24 22:30:55