-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d08740b
commit 3c19e8f
Showing
1 changed file
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,52 @@ | ||
webmention-specification | ||
======================== | ||
# WebMention Specification | ||
|
||
A modern alternative to [Pingback](http://www.hixie.ch/specs/pingback/pingback). | ||
|
||
|
||
## Protocol Flow | ||
|
||
### Sender discovers Receiver Endpoint | ||
|
||
``` | ||
> GET /bob/post/2 HTTP/1.1 | ||
> Host: bobs.host | ||
< HTTP/1.1 200 OK | ||
< Link: <http://bobs.host/webmention-endpoint>; rel="http://webmention.org/" | ||
< ... | ||
< | ||
< <html> | ||
< ... | ||
< <link href="http://bobs.host/webmention-endpoint" rel="http://webmention.org/" /> | ||
< ... | ||
``` | ||
|
||
|
||
|
||
|
||
### Sender Notifies Receiver | ||
|
||
``` | ||
> POST /webmention-endpoint HTTP/1.1 | ||
> Host: bobs.host | ||
> Content-Type: application/x-www-url-form-encoded | ||
> | ||
> source=http://alices.host/alice/post/42&\ | ||
> target=http://bobs.host/bob/post/2 | ||
``` | ||
|
||
_Note: the "\" character is used here to indicate line wrapping in the request content and is not part of the content itself._ | ||
|
||
`bobs.host` should check that `target` is a valid resource belonging to it and then perform a `GET` on `source` and confirm that it actually links to `target`. | ||
|
||
|
||
## See also | ||
|
||
* [Pingback](http://www.hixie.ch/specs/pingback/pingback) | ||
* [Trackback](http://archive.cweiske.de/trackback/trackback-1.2.html) | ||
* [RESTful Pingback](http://www.w3.org/wiki/Pingback) | ||
* [Semantic Pingback](http://aksw.org/projects/semanticpingback) | ||
|
||
## Let's collaborate | ||
Feel free to [file an issue](https://github.com/converspace/webmention-specification/issues) if you have feedback/questions/suggestions. |