<test-history test='Bosh keep-alive 9'>
<OUTPUT test='Bosh keep-alive 9'>
<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 keep-alive 9'>
<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>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms></stream:features>
</INPUT>
<OUTPUT test='Bosh keep-alive 9'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
</OUTPUT>
<INPUT test='Bosh keep-alive 9'>
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InRlc3QtZCIsbm9uY2U9IjFJaXRHOXhrUFJzV09rV2Juc1dMVTU2c0FwS2ozMHNNOFNXWmd0cVAiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
</INPUT>
<OUTPUT test='Bosh keep-alive 9'>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9IjFJaXRHOXhrUFJzV09rV2Juc1dMVTU2c0FwS2ozMHNNOFNXWmd0cVAiLG5jPTAwMDAwMDAxLGNub25jZT0iLzJMQkpGczFCWjNnMnJHRGp5OFBLYlNKWUhXMUFUNThQTTdyaG1wUyIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT02YmEyNDU1YTM2NTBjNjIyMGMwNWViZjhhOWY4NDZjMCxxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
</OUTPUT>
<INPUT test='Bosh keep-alive 9'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD0wMjViNmRkYTc5ZjdkNWFkOWE3NDEwMDMyN2ZiOWU1NQ==</success>
</INPUT>
<OUTPUT test='Bosh keep-alive 9'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Bosh keep-alive 9'>
<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 keep-alive 9'>
<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 keep-alive 9'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="bind1" type="result"><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 keep-alive 9'>
<message to="tester_1@srecv.test-d" from="all-xmpp-test@test-d/def-user-resource" id="ab00a" type="chat">
<body>Test message no $(counter)</body>
</message>
</OUTPUT>
<INPUT test='Bosh keep-alive 9'>
<message to="all-xmpp-test@test-d/def-user-resource" from="tester_1@srecv.test-d" type="normal"><body>This is response to your message: [Test message no $(counter)]</body><subject>Response</subject></message>
</INPUT>

</test-history>