<test-history test='Basic 3 (c2s)'>
<OUTPUT test='Basic 3 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Basic 3 (c2s)'>
<stream:stream xmlns="jabber:client" xml:lang="en" version="1.0" id="82382007-a47a-416a-81b6-77ec51f0ad4c" xmlns:stream="http://etherx.jabber.org/streams" from="test-d"/>
</INPUT>
<INPUT test='Basic 3 (c2s)'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
</INPUT>
<OUTPUT test='Basic 3 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AHVzZXItcmVnaXN0ZXItbmFtZQB1c2VyLXJlZ2lzdGVyLXBhc3M=</auth>
</OUTPUT>
<INPUT test='Basic 3 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='Basic 3 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Basic 3 (c2s)'>
<stream:stream xmlns="jabber:client" xml:lang="en" version="1.0" id="82382007-a47a-416a-81b6-77ec51f0ad4c" xmlns:stream="http://etherx.jabber.org/streams" from="test-d"/>
</INPUT>
<INPUT test='Basic 3 (c2s)'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>
</INPUT>
<OUTPUT test='Basic 3 (c2s)'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='Basic 3 (c2s)'>
<iq xmlns="jabber:client" to="user-register-name@test-d/def-user-resource" type="result" id="bind1"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>user-register-name@test-d/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='Basic 3 (c2s)'>
<iq type='set' id='unreg1' from='user-register-name@test-d/def-user-resource'><query xmlns='jabber:iq:register'><remove/></query></iq>
</OUTPUT>
<INPUT test='Basic 3 (c2s)'>
<stream:stream/>
</INPUT>

</test-history>