<test-history test='Basic 2 (c2s)'>
<OUTPUT test='Basic 2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Basic 2 (c2s)'>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="test-d" id="56b6934c-853b-436a-8bc7-b58f3a46c63f" xml:lang="en" version="1.0"/>
</INPUT>
<INPUT test='Basic 2 (c2s)'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><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 2 (c2s)'>
<iq type='get' id='reg1'><query xmlns='jabber:iq:register'/></iq>
</OUTPUT>
<INPUT test='Basic 2 (c2s)'>
<iq xmlns="jabber:client" id="reg1" type="result"><query xmlns="jabber:iq:register"><instructions>Choose a user name and password for use with this service.Please provide also your e-mail address.</instructions><username/><password/><email/></query></iq>
</INPUT>
<OUTPUT test='Basic 2 (c2s)'>
<iq type='set' id='reg2'><query xmlns='jabber:iq:register'><username>user-register-name</username><password>user-register-pass</password><email>test_user@localhost</email></query></iq>
</OUTPUT>
<INPUT test='Basic 2 (c2s)'>
<iq xmlns="jabber:client" id="reg2" type="result"/>
</INPUT>

</test-history>