[Standards] IQ type=set to query messages in XEP-0313

Kevin Smith kevin.smith at isode.com
Tue Oct 27 10:50:01 UTC 2015


On 27 Oct 2015, at 10:45, Michael Uvarov <freeakk at gmail.com> wrote:
> 
> Hi,
> 
> I have a question about XEP-0313.
> There is part that is counterintuitive:
> 
> Example 1. A user queries their archive for messages
> <iq type='set' id='juliet1'>
> 
>   
> <query xmlns='urn:xmpp:mam:1' queryid='f27' />
> </iq>
> 
> 
> Why should we send "set" IQ to 
> get
>  messages? It was "get" in the older versions of the XEP.
> What was the reason to change it?

Because the ‘get’ is what’s used to ask for the form fields, and the ‘set’ is used to submit the fields.

We end up with slightly odd terminology, because the action you’re asking is to fetch stuff, but it’s fairly consistent for ‘get’ to fetch the form and ‘set’ to submit it.

/K



More information about the Standards mailing list