weblogUpdates.extendedPing example

there are two examples on this page.

note: the methods for handling non-ASCII characters in names also works using our implementation of the weblogUpdates.ping method, but it is unknown if, or how well, the weblogs.com implementation of that interface handles non-ASCII characters.

here is an example of an XML-RPC ping using the weblogUpdates.extendedPing for the blog "I ♥ São Paulo", located at http://ilovesaopaulo.example.com/ with an rss feed at http://ilovesaopaulo.example.com/index.rss.

some things to note:

  • the ♥ in the name is expressed as a numeric entity. html entities such as ♥ will not be understood.
  • the ã in the name is expressed using an iso-8859-1 character, and we've set the encoding in the xml declaration to reflect that. if we had not, we would have needed to encode the character in utf-8 or as a numeric entity.
  • the third parameter is empty, because we are not specifying a special "check" url.
POST / HTTP/1.0
Host: ping.blo.gs
Content-Type: text/xml
Content-Length: 394
<?xml version="1.0" encoding="iso-8859-1"?>
<methodCall>
 <methodName>weblogUpdates.extendedPing</methodName>
 <params>
 <param>
 <value>I &#9829; São Paulo</value>
 </param>
 <param>
 <value>http://ilovesaopaulo.example.com/</value>
 </param>
 <param>
 <value></value>
 </param>
 <param>
 <value>http://ilovesaopaulo.example.com/index.rss</value>
 </param>
 </params>
</methodCall>

here is an example of an XML-RPC ping using the weblogUpdates.extendedPing for the blog "The &nbsp; in São Paulo", located at http://nbspsaopaulo.example.com/ with the actual url to check being http://nbspsaopaulo.example.com/content.html.

some things to note:

  • the "&nbsp;" in the name is expressed as &amp;nbsp;
  • the ã in the name is expressed as a numeric entity, because we have left the encoding unspecified (which will default to utf-8). it could also have simply been encoded as utf-8, but that's harder to show in an example.
  • the fourth parameter is empty, because we are not specifying an rss url.
POST / HTTP/1.0
Host: ping.blo.gs
Content-Type: text/xml
Content-Length: 402
<?xml version="1.0"?>
<methodCall>
 <methodName>weblogUpdates.extendedPing</methodName>
 <params>
 <param>
 <value>The &amp;nbsp; Space in S&#227;o Paulo</value>
 </param>
 <param>
 <value>http://nbspsaopaulo.example.com/</value>
 </param>
 <param>
 <value>http://nbspsaopaulo.example.com/content.html</value>
 </param>
 <param>
 <value></value>
 </param>
 </params>
</methodCall>

AltStyle によって変換されたページ (->オリジナル) /