Skip to main content

Johan Bové

Webmention DELETE testing with webmention.rocks

2 min read

Testing if deleting a webmention works in Known.

The result of the quick test was successful:

Successful Tests
The mentions below have successfully passed the test! If you visit any of the links below, you should see an indication that the post was deleted.
    No Name
    Comment text not found
    https://social.johanbove.info/2019/11/05/testing-webmentions-in-known-and-deleting-a
    The post did not provide a URL, using source instead

The Status as sent by the Known CMS:

Request URL: https://social.johanbove.info/2019/11/05/testing-webmentions-in-known-and-deleting-a
Request method:GET
Remote address: ...
Status code: 410 Gone
Version:HTTP/2.0
Referrer Policy:no-referrer-when-downgrade

The Test

How to test is explained on this webmention.rocks test: https://webmention.rocks/delete/1

This test verifies that you properly send Webmentions when you delete a post. You will pass this test when you send a Webmention to a URL that you had previously mentioned in a post.

  1. Write a post that links to this page, and send Webmentions for your post.
  2. Verify you see your post as "pending" on this page.
  3. Delete your post, and ensure that the post's URL is now returning HTTP 410 (or a meta http-equiv 410 status).
  4. Send a Webmention to this page again.

You should see your post listed here in the green "Successful Tests" section when complete.

Resources