Skip to content

Fatal error: Uncaught exception 'XmppBoshException' with message 'Invalid login' #1

@devin0910

Description

@devin0910

I modified examples/basic/basic.php like the following:

$boshUrl = 'http://localhost/xmpp-httpbind'; // BOSH url
$domain = 'localhost';                    // XMPP host

$xmppBosh = new XmppBosh($domain, $boshUrl,  '', false, false);

$node = 'devin';         // Without @example.com
$password = 'like';
$xmppBosh->connect($node, $password);

the output looks like this:
string 'http://localhost/xmpp-httpbind' (length=30)
string '

' (length=236) string 'http://localhost/xmpp-httpbind' (length=30) string ' ' (length=247) string 'http://localhost/xmpp-httpbind' (length=30) string ' dXNlcm5hbWU9ImRldmluIixyZWFsbT0ibG9jYWxob3N0Iixub25jZT0iSGZwSzdvQ0JWdFJzclkzMjVpeTJIbzJMR2J6dnphT1hZVHN0TEFzaCIsY25vbmNlPSJUV2EzdVNhZUtFNE8yeGxVSXFJTTk5KytpdlI3MXBsSm1lU1B5Y0RJeHhRPSIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC9sb2NhbGhvc3QiLHJlc3BvbnNlPTcyMTRmNWU3ZjZjODE0OWViNjAwZTE5ZjAzNmYyMTk2LG1heGJ1Zj02NTUzNg== ' (length=562) string 'http://localhost/xmpp-httpbind' (length=30) string ' ' (length=228)

can u tell me what's wrong with the above code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions