<test-history test='Bosh 16'>
<OUTPUT test='Bosh 16'>
<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 16'>
<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 16'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
</OUTPUT>
<INPUT test='Bosh 16'>
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InRlc3QtZCIsbm9uY2U9ImUveTBhb3FXS3dDWDhDTytBZ3J6OXBnT1RwRW5jTloyZUNobWlUMDIiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
</INPUT>
<OUTPUT test='Bosh 16'>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9ImUveTBhb3FXS3dDWDhDTytBZ3J6OXBnT1RwRW5jTloyZUNobWlUMDIiLG5jPTAwMDAwMDAxLGNub25jZT0iaDFNT0htc2d6Y2RrLy9ZMENKKytIckxjUW41OGxvTmtqN1QvVk5rYyIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT0xZmQ2Y2RkZDRlMTEwMWI4YWUxNTRiOGI0NjI1YWNjOCxxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
</OUTPUT>
<INPUT test='Bosh 16'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD02MzE3NDdjMTY2ZTg1ZGQ4ODcxOGMyMGJiYmExNjJlYg==</success>
</INPUT>
<OUTPUT test='Bosh 16'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Bosh 16'>
<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 16'>
<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 16'>
<iq id="bind1" to="all-xmpp-test@test-d/def-user-resource" 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 16'>
<iq id="1" type="get">
<not-yet-supported xmlns="test:unsupported:feature"/></iq>
</OUTPUT>
<INPUT test='Bosh 16'>
<iq id="1" to="all-xmpp-test@test-d/def-user-resource" type="error" xmlns="jabber:client"><not-yet-supported xmlns="test:unsupported:feature"/><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Feature not supported yet.</text></error></iq>
</INPUT>
<OUTPUT test='Bosh 16'>
<iq id="agsXMPP_3" to="test-d" xmlns="jabber:client" type="get">
<query xmlns="jabber:iq:agents"/></iq>
</OUTPUT>
<INPUT test='Bosh 16'>
<iq from="test-d" id="agsXMPP_3" to="all-xmpp-test@test-d/def-user-resource" type="error" xmlns="jabber:client"><query xmlns="jabber:iq:agents"/><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Feature not supported yet.</text></error></iq>
</INPUT>

</test-history>