Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Last active February 16, 2021 18:02
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aaronpk/5744879 to your computer and use it in GitHub Desktop.

Swap out the two URLs (first is source, second is target) then run with curl:

curl -X POST -d @pingback.xml http://example.com/xmlrpc
<?xml version="1.0" encoding="iso-8859-1"?>
<methodCall>
<methodName>pingback.ping</methodName>
<params>
<param>
<value>
<string>http://indiewebcamp.com/comment</string>
</value>
</param>
<param>
<value>
<string>http://aaronparecki.com/replies/2013/03/19/1/indiewebcamp</string>
</value>
</param>
</params>
</methodCall>
@prtksxna
Copy link

prtksxna commented Aug 20, 2019

Thanks for the guide Aaron! I tried it but I get the following error response:

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <fault>
    <value>
      <struct>
        <member>
          <name>faultCode</name>
          <value><int>0</int></value>
        </member>
        <member>
          <name>faultString</name>
          <value><string></string></value>
        </member>
      </struct>
    </value>
  </fault>
</methodResponse>

The ping.xml was:

<?xml version="1.0" encoding="iso-8859-1"?>
<methodCall>
<methodName>pingback.ping</methodName>
<params>
 <param>
  <value>
   <string>https://prtksxna.com/2019/08/20/mapping-socorro-panchayat/</string>
  </value>
 </param>
 <param>
  <value>
   <string>https://samwilson.id.au/2019/08/18/cycle-to-perth/</string>
  </value>
 </param>
</params>
</methodCall>

@aaronpk
Copy link
Author

aaronpk commented Aug 20, 2019

IIRC faultCode 0 means it worked.

@prtksxna
Copy link

I checked and the other person still didn't receive a pingback, so, I convinced them to install the Webmention plugin instead 😊
Thanks for this gist though, @aaronpk!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment