X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Froot-html.js;h=8797564e54e93b1ef816de4c4e4b6e01269e3b7c;hb=f92c90e92ded661ddd957580e7fbde8aaa24224d;hp=d1939b84cd6bb690c07c0c65cd5cd7bbab6dd9c7;hpb=38aba0869dc3ade99d439e74cbc6239b4fa1f632;p=websub-hub diff --git a/src/template/root-html.js b/src/template/root-html.js index d1939b8..8797564 100644 --- a/src/template/root-html.js +++ b/src/template/root-html.js @@ -46,6 +46,15 @@ function usageSection(isPublicHub, hubURL) { +
+ Link: <${hubURL}>; rel="hub", <https://example.com/feed/>; rel="self"
+
+ POST
request to this hub with Form Data:
+ To notify the Hub that a topic's content has been updated and should be distributed to subscribers, send a POST
request with Form Data (application/x-www-form-urlencoded
):
hub.mode
set to publish
hub.url
set to the self
link relation of the content
+ hub.url
set to the self
link relation of the content (this value may be set multiple times, to update more than one topic)
+ curl ${hubURL} -d'hub.mode=publish' -d'hub.url=https://example.com/blog_one/feed' -d'hub.url=https://example.com/blog_two/feed'
+
+