{% extends "_root.html" %} {% block content %}
| Timestamp | Source | Target | Vouch | Status |
|---|---|---|---|---|
| {{ webmention.timestamp }} | {{ webmention.source }} | {{ webmention.target }} | {% if webmention.vouch %} {{ webmention.vouch }} {% else %} None {% endif %} | {{ webmention.status }} |
No webmentions received yet.
{% endif %}Use curl to test the server:
curl -X POST http://localhost:8080/webmention \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "source=https://aaronparecki.com/notes/2024/01/01/1&target=http://localhost:8080/post/1"
curl -X POST http://localhost:8080/webmention \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "source=https://unknown-site.com/post/1&target=http://localhost:8080/post/1"
curl -X POST http://localhost:8080/webmention \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "source=https://unknown-site.com/post/1&target=http://localhost:8080/post/1&vouch=https://aaronparecki.com/notes/2024/01/01/1"
Note: This example server uses AlwaysAllow for domain approval, so all authorities are approved. In a real implementation, you would check against a list of approved domains.
{% endblock %}