Ejabberd user vcard
准备
windows客户端 : eyeCU
工具: eyeCU xml-console
协议 xep-054: https://xmpp.org/extensions/xep-0054.html
流程
- 获取vcard
Start sending user stanza...
>>>> admin@49.233.92.47/eyeCU 16:23:11 +0 >>>>
<iq id="v1" type="get">
<vCard xmlns="vcard-temp"/>
</iq>
User stanza sent.
<<<< admin@49.233.92.47/eyeCU 16:23:11 +87 <<<<
<iq xmlns="jabber:client" id="v1" type="result" xml:lang="zh" xmlns:xml="http://www.w3.org/XML/1998/namespace" to="admin@49.233.92.47/eyeCU" from="admin@49.233.92.47">
<vCard xmlns="vcard-temp">
<PHOTO xmlns="vcard-temp">
<BINVAL xmlns="vcard-temp">/9j/4AAQSkZJRgABAQAASABIAAD/4QBYRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIqADAAQAAAABAAAAIgAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8AAEQgAIgAiAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoa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