-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsubscribe_debug.html
More file actions
72 lines (66 loc) · 2.34 KB
/
subscribe_debug.html
File metadata and controls
72 lines (66 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html>
<head>
<title>Hub - Subscription debug</title>
<link rel="stylesheet" href="/base.css" type="text/css">
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="/favicon.ico">
</head>
<body>
<h1>Subscribe/Unsubscribe</h1>
Create a new subscription.
<form action="/subscribe" method="post" accept-charset="utf-8">
<p>
<label for="callback">Callback: <em>(the subscriber URL)</em></label>
<input type="text" name="hub.callback" value="" id="callback">
</p>
<p>
<label for="topic">Topic: <em>(the feed URL)</em></label>
<input type="text" name="hub.topic" value="" id="topic">
</p>
<p>
<label for="foaf">FOAF: <em>(the subscriber FOAF profile)</em></label>
<textarea cols="40" rows="5" name="hub.foaf" value="" id="foaf">FOAF Profile</textarea>
</p>
<p>
<label for="verify">Verify type:</label>
<select name="hub.verify" id="async">
<option value="sync" selected="selected">Synchronous</option>
<option value="async">Asynchronous</option>
</select>
</p>
<p>
<label for="mode">Mode:</label>
<select name="hub.mode" id="mode">
<option value="subscribe" selected="selected">Subscribe</option>
<option value="unsubscribe">Unsubscribe</option>
</select>
</p>
<p>
<label for="verify_token">Verify token:</label>
<input type="text" name="hub.verify_token" id="verify_token" value="">
</p>
<p>
<label for="secret">HMAC secret: <em>(optional)</em></label>
<input type="text" name="hub.secret" id="secret" value="">
</p>
<p><input type="submit" value="Do it"></p>
</form>
<em>Note: submission will result in a HTTP 204 response to acknowledge; in browsers this looks like a no-op</em>
<h1>Subscriber Diagnostics</h1>
Retrieve details about a subscription.
<form action="/subscription-details" method="get" accept-charset="utf-8">
<p>
<label for="callback">Callback: <em>(the subscriber URL)</em></label>
<input type="text" name="hub.callback" value="" size="50" id="callback">
</p>
<p>
<label for="topic">Topic: <em>(the feed URL)</em></label>
<input type="text" name="hub.topic" value="" size="50" id="topic">
</p>
<p>
<label for="secret">Secret: <em>(optional)</em></label>
<input type="text" name="hub.secret" value="" size="50" id="secret">
</p>
<p><input type="submit" value="Get info"></p>
</form>
</body>
</html>