Skip to content

Instantly share code, notes, and snippets.

@aaronpk aaronpk/README.md
Last active Aug 21, 2019

Embed
What would you like to do?

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner Author

commented Aug 20, 2019

IIRC faultCode 0 means it worked.

@prtksxna

This comment has been minimized.

Copy link

commented Aug 21, 2019

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
You can’t perform that action at this time.