<test-history test='Bosh 14'>
<OUTPUT test='Bosh 14'>
<body xmlns='http://jabber.org/protocol/httpbind' xmlns:xmpp='urn:xmpp:xbosh' xml:lang='en' rid='1216' content='text/xml; charset=utf-8' to='test-d' ver='1.6'/>
</OUTPUT>
<INPUT test='Bosh 14'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms></stream:features>
</INPUT>
<OUTPUT test='Bosh 14'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
</OUTPUT>
<INPUT test='Bosh 14'>
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InRlc3QtZCIsbm9uY2U9Im1yL2dsSFFBTkUvUkkwWTgxYmRmMG5lYTRKSDgrTGU5S3gzTXZrZWIiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
</INPUT>
<OUTPUT test='Bosh 14'>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9Im1yL2dsSFFBTkUvUkkwWTgxYmRmMG5lYTRKSDgrTGU5S3gzTXZrZWIiLG5jPTAwMDAwMDAxLGNub25jZT0ieEVaUnJHU1ArZ2ZvQnh3ZlhmOVlRUXdwc09TaGpXUmVlZ2xtR3NqYiIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT1hNmUyOGI2MmRkNTNjMDBjYWM4OGU0MTZmYjI1Zjg1ZCxxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
</OUTPUT>
<INPUT test='Bosh 14'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD04OGM3ZDg3YzUxMzY3MmRmZGFmYWQwNTdhMGE4MTJjOQ==</success>
</INPUT>
<OUTPUT test='Bosh 14'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Bosh 14'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='Bosh 14'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='Bosh 14'>
<iq type="result" id="bind1" to="all-xmpp-test@test-d/def-user-resource"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>all-xmpp-test@test-d/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='Bosh 14'>
<message type='chat' from='all-xmpp-test@test-d/def-user-resource' to='blocking-test-user_1@test-d/xmpp-test'>Test message no. 1, from: all-xmpp-test@test-d/def-user-resource.</message>
</OUTPUT>
<INPUT test='Bosh 14'>
<message type="error" from="blocking-test-user_1@test-d/xmpp-test" to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client"><error type="cancel" code="503"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Service not available.</text></error></message>
</INPUT>

</test-history>