Forums

Remotely ask WP to ping services... (9 posts)

  1. Kirzilla
    Member
    Posted 1 year ago #

    Hello. It is my first msg at WP forums.

    At the moment I'm developing software that will allow to post articles to blogs remotely. So, I have some questions...

    After saving post WP starts to ping services. How could I ask blog to start pinging remotely?

    Sorry for my English, but I hope that my question is clear.
    Thanks!

  2. Otto42
    Moderator
    Posted 1 year ago #

    How are you posting the article to the blog?

    If you're using the correct way (through XML-RPC), then you don't have to do anything, it'll ping on its own.

  3. Kirzilla
    Member
    Posted 1 year ago #

    I'm posting article to the blog dirctly to the WP DB.

    Sorry, but I can't use xml-rpc, because I have too much blogs with WP and some of them are running under WP v2.14 etc.

    So, right now I'm looking for:
    - s/th that would ask blog to ping services
    - function that WP uses to prepare post before inserting into DB. I need it because I want my application to post articles to DB as well as WP do it.

    Thanks.

  4. Otto42
    Moderator
    Posted 1 year ago #

    Okay, well, if you're not running the latest versions, then you simply can't do it remotely. Period. Older versions only did the pings by the code that runs when you put the post into the database. There's no remote hook for doing pings on those versions.

    My advice:
    1. Upgrade. Old versions are not safe.
    2. Use XML-RPC. That's what it is there for. That's the whole point of having a webservice interface. It's also extremely easy to use, and you don't have to format your own data and such.

  5. Kirzilla
    Member
    Posted 1 year ago #

    Otto42, thanks for your patience explaining it to me.

    1. Yeah, I know. Some days ago my 2.14 blogs were hacked. It was very annoying cleaning'em from shitty code :))

    I'm not updgrading oldest versions to current because I have too much blogs and I think that after upgrading them some of templates won't work prorertly....

    2. Yes, I know that XML-RPC is great thing, but..... :(
    Btw.. where can I read about XML-RPC in Wordpress?

    Is there any other methods to ping services (exept native WP methods)?

    Thanks Otto42, your help is great!

  6. Kirzilla
    Member
    Posted 1 year ago #

    Where I can find out any samples of xml-rpc queries (full headers) which WP sends while pinging services?

    I can develop ping tool by myself using PHPXmlRPC class (http://phpxmlrpc.sourceforge.net/).

    For example s/th like

    $client=new xmlrpc_client("/ping/RPC2", "http://blogsearch.google.com", 80);
    $response=$client->send( $xmlrpc_message );
  7. Kirzilla
    Member
    Posted 1 year ago #

    I've found cool thing...

    I'm adding my every blog to FeedBurner.com and it has PingShot option.
    http://blogs.feedburner.com/feedburner/archives/001433.html

    It is real solution of my problem, isnt' it?

  8. Otto42
    Moderator
    Posted 1 year ago #

    WordPress uses the weblogUpdates.extendedPing method, or if that fails, falls back to the weblogUpdates.ping method.

    In the extended ping, it sends the blog name, the URL, and the RSS2 feed url.

    In the normal ping it only sends the blog name and URL.

    See here: http://www.weblogs.com/api.html

  9. Kirzilla
    Member
    Posted 1 year ago #

    Otto42, thank. Very helpful.

    So, if FeedBurner PingShot won't be enough for me I will use weblogUpdates API.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic