[Standards] media objects in data forms
stpeter at stpeter.im
Thu May 1 19:04:08 UTC 2008
In yesterday's XMPP Council meeting we had some discussion about whether
and how to include media objects in data forms (cf. XEP-0221):
This matters because we need something like this so that we can include
CAPTCHAs in registration forms.
Ralph Meijer objected that he doesn't see a good place for media objects
in data forms. I proposed that we could do something like this (note the
<data/> element from XEP-0231):
to='robot at spimmer.com/zombie'
<x xmlns='jabber:x:data' type='form'>
[ ... ]
==> <data xmlns='urn:xmpp:tmp:data-element'
==> cid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6 at victim.com
[ ... ]
Then if the recipient needs to retrieve the data via XMPP (e.g., because
it cannot access sites via HTTP because of socket limitations) it can do
so as described in XEP-0231:
<iq from='robot at spimmer.com/zombie'
cid='f81d4fae-7dec-11d0-a765-00a0c91e6bf6 at victim.com'/>
Alternatively, we could specify that the <media/> element shall contain
only URIs and never direct data (which is essentially what the cid: URL
does). Or we we could not use cid: URLs at all but instead define a new
URI scheme (or reuse the xmpp: scheme with a special action) for data
reference and retrieval.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
More information about the Standards