In a 'blast from the past', I sent my first pingback after writing the previous post. A pingback is a way for a blogger to send a message to another blogger, informing them they've written a post that refers to theirs, e.g. as a reply or an extension of the ideas raised.

The process is a bit more involved than using a webmention, which I've used before and implemented support for a while back, due to requiring an XML message to be created rather than a simple exchange of URLs.

First, I created a file pingback.xml containing the URLs of the blog post I wrote and the one I made reference to within my post. The standard defines the schema, resulting in the following:

<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
    <methodName>pingback.ping</methodName>
    <params>
        <param>
            <value><string>https://www.vanrenterghem.biz/blog/posts/agent_based_models_digital_twins/</string></value>
        </param>
        <param>
            <value><string>https://johncarlosbaez.wordpress.com/2023/10/25/software-for-compositional-modeling-in-epidemiology/</string></value>
        </param>
    </params>
</methodCall>

Next, I used curl on the command-line to send this file in a POST request to Wordpress's pingback service. I had to use the -k option to make this work - bypassing verification of the TLS certificate.

curl -k https://johncarlosbaez.wordpress.com/xmlrpc.php -d @pingback.xml

In a sign things were going well, I saw the following appear in my website's access log:

192.0.112.141 - - [29/Oct/2023:09:35:06 +0100] "GET /blog/posts/agent_based_models_digital_twins/ HTTP/1.1" 200 2676
"https://www.vanrenterghem.biz/blog/posts/agent_based_models_digital_twins/"
"WordPress.com; https://johncarlosbaez.wordpress.com; verifying pingback
from 139.216.235.49"

Finally, I received the following response to my curl request on the command-line:

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param>
      <value>
      <string>Pingback from https://www.vanrenterghem.biz/blog/posts/agent_based_models_digital_twins/ to https://johncarlosbaez.wordpress.com/2023/10/25/software-for-compositional-modeling-in-epidemiology/ registered. Keep the web talking! :-)</string>
      </value>
    </param>
  </params>
</methodResponse>

That "Keep the web talking! :-)" message made me smile.

In order to understand a bit better how things were being processed, I checked the Wordpress code for its pingback service, and it appears they take the title of the linked article as the author, which seems a bit odd. The pingback standard didn't allow for anything but the swapping out of links though. How your reference is summarized on the referred site is entirely left to recipient - who may process pingbacks manually or use a service automating (parts of) the processing.

Wordpress processes pingbacks automatically, turning them into comments on the original post. As the comment text, Wordpress uses the link text in the anchor element with a horizontal ellipsis around it, and some filtering to prevent the comment from being too long. It's odd how the standard didn't define further approaches to make this a bit easier. A pingback attribute in the anchor element would have been helpful for instance, as we could put some text in there to summarise our page when the pingback is processed automatically. Most surprisingly maybe, with the benefit of hindsight, it would have been interesting had the subsequent standard that emerged, Webmention, implemented some further enhancements. Aaron Parecki, author of the Webmention W3C Recommendation, might know if that was ever considered, or just not within the use case for pingbacks / webmentions? There seemed to have been some thought put into it in 2019 at least.