blob: 6961304cfe7695f77609d8c32c4577281044b25a (
plain)
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
|
# PEP max_items=max
[Client] Romeo
jid: pep-test-maxitems@localhost
password: password
-----
Romeo connects
Romeo sends:
<iq type="set" id="pub">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="urn:xmpp:microblog:0">
<item>
<entry xmlns='http://www.w3.org/2005/Atom'>
<title>Hello</title>
</entry>
</item>
</publish>
<publish-options>
<x xmlns="jabber:x:data" type="submit">
<field type="hidden" var="FORM_TYPE">
<value>http://jabber.org/protocol/pubsub#publish-options</value>
</field>
<field var="pubsub#persist_items">
<value>true</value>
</field>
<field var="pubsub#access_model">
<value>open</value>
</field>
<field var="pubsub#max_items">
<value>max</value>
</field>
</x>
</publish-options>
</pubsub>
</iq>
Romeo receives:
<iq type="result" id="pub">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="urn:xmpp:microblog:0">
<item id="{scansion:any}"/>
</publish>
</pubsub>
</iq>
|