谷歌Ping服务XML-RPC一键生成

Blog Ping List and XML-RPC Generator

If you're using WordPress or something similar for your blog, it's easy to add in blog pinging services and forget about the whole process. But, what if you need to ping those services for a blog constructed outside of WordPress? This tutorial will answer that question for you.

What is Blog Pinging?

Blog pinging is the process by which your server immediately lets content aggregators and search engines know that you have new content that should be indexed. Almost always, this is done with an XML-RPC-based request sent from your server.

How do I construct my XML-RPC Request?

The format is pretty simple. Here's an example:

<?xml version="1.0"?>
<methodCall>
  <methodName>weblogUpdates.extendedPing</methodName>
  <params>
    <param>
      <value>Example Blog</value>
    </param>
    <param>
      <value>http://www.example.com/blog/</value>
    </param>
    <param>
      <value>http://www.example.com/blog/new-post.html</value>
    </param>
    <param>
      <value>http://www.example.com/blog/feed.xml</value>
    </param>
  </params>
</methodCall>

Want it even easier? Okay... Tell us your blog details and we'll construct the XML-RPC request for you:

转自:http://www.inkplant.com/code/blog-ping.php //这是一个外国网站,可以使用翻译,网站上有一键生成功能。上面的就是XML-RPC的模板。

posted @ 2013-02-06 11:31  stma  阅读(315)  评论(0)    收藏  举报