Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <?php
  2. include 'lib/XmppPrebind.php';
  3.  
  4. $host = "http://192.168.1.104";
  5. $username = "xyz@192.168.1.104";
  6. $password = "YXJpaGFudC5qYWluQGNvbnZlcmdlbmNlc2VydmljZXMuaW4=";
  7. $boshURI = "http://192.168.1.104/xmpp-httpbind";
  8. $xmppPrebind = new XmppPrebind($host, $boshURI, "", false, true);
  9. $xmppPrebind->connect($username, $password);
  10. $xmppPrebind->auth();
  11. $sessionInfo = $xmppPrebind->getSessionInfo();
  12.  
  13. Fatal error: Uncaught exception 'XmppPrebindConnectionException' with message 'Invalid challenge response received' in /Applications/XAMPP/xamppfiles/htdocs/xmpp-prebind-php-master/lib/XmppPrebind.php:491
  14. Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/xmpp-prebind-php-master/lib/XmppPrebind.php(452): XmppPrebind->replyToChallengeResponse('<body xmlns='ht...') #1 /Applications/XAMPP/xamppfiles/htdocs/xmpp-prebind-php-master/lib/XmppPrebind.php(208): XmppPrebind->sendChallengeAndBuildDigestMd5Auth(Object(Auth_SASL_DigestMD5)) #2 /Applications/XAMPP/xamppfiles/htdocs/xmpp-prebind-php-master/test.php(10): XmppPrebind->auth() #3 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/xmpp-prebind-php-master/lib/XmppPrebind.php on line 491
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement