我可以与其他客户认证,包括SleekXMPP和Strophe.

在Ubuntu 12.04上使用Prosody 0.8.2,在jaxl上使用最新的主HEAD

(2518a44b9dfeb9ec947922f078cf4f8663497712).

代码:

require 'JAXL/jaxl.php';

$cli = new JAXL(array(

'jid' => 'yang@localhost',

'pass' => 'asdf',

'bosh_url' => 'http://localhost/chat/candy/example/http-bind/'

));

$cli->add_cb('on_auth_success', function() {

print 'yay';

});

$cli->start();

来自客户:

来自服务器:

xmlns:stream='http://etherx.jabber.org/streams'

xmlns:xmpp='urn:xmpp:xbosh' inactivity='60' wait='30' polling='5'

secure='true' hold='1' from='localhost' ver='1.6'

sid='72604504-a5be-4ab6-aba0-9686cca478f3' requests='2'

xmlns='http://jabber.org/protocol/httpbind'>

来自客户:

biwsbj15YW5nQGxvY2FsaG9zdCxyPVpRWUp0b1JwUXMwTlFkYlJ3VnlNT1FvQXN5bnhLWlN1OUpocjdVeTdkbFE9

来自服务器:

sid='72604504-a5be-4ab6-aba0-9686cca478f3' xmlns:stream =

'http://etherx.jabber.org/streams'>

来自客户:

来自Prosody日志:

Oct 25 01:18:53 socket debug server.lua: accepted new client

connection from 127.0.0.1:41313 to 5280

Oct 25 01:18:53 mod_bosh debug BOSH body open (sid: %s)

Oct 25 01:18:53 bosh9096614e-a319-4234-b281-d5806b7bc558 debug

BOSH session created for request from 127.0.0.1

Oct 25 01:18:53 mod_bosh info New BOSH session, assigned it

sid '9096614e-a319-4234-b281-d5806b7bc558'

Oct 25 01:18:53 httpserver debug Sending response to c890f0

Oct 25 01:18:53 httpserver debug Destroying request c890f0

Oct 25 01:18:53 httpserver debug Request has destroy callback

Oct 25 01:18:53 socket debug server.lua: closed client handler and

removed socket from list

Oct 25 01:18:53 mod_bosh debug Session

9096614e-a319-4234-b281-d5806b7bc558 has 0 out of 1 requests open

Oct 25 01:18:53 mod_bosh debug and there are 0 things in the

send_buffer

Oct 25 01:18:53 socket debug server.lua: accepted new client

connection from 127.0.0.1:41314 to 5280

Oct 25 01:18:53 mod_bosh debug BOSH body open (sid:

9096614e-a319-4234-b281-d5806b7bc558)

Oct 25 01:18:53 mod_bosh debug BOSH stanza received:

mechanism='SCRAM-SHA-1' xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>

Oct 25 01:18:53 bosh9096614e-a319-4234-b281-d5806b7bc558 debug

Received[c2s_unauthed]:

xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>

Oct 25 01:18:53 auth_internal_plain debug NODEprep failed on

username: yang@localhost

Oct 25 01:18:53 localhost:saslauth debug sasl reply:

xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>

Oct 25 01:18:53 mod_bosh debug We have an open request, so

sending on that

Oct 25 01:18:53 httpserver debug Sending response to ccd1d0

Oct 25 01:18:53 httpserver debug Destroying request ccd1d0

Oct 25 01:18:53 httpserver debug Request has destroy callback

Oct 25 01:18:53 bosh9096614e-a319-4234-b281-d5806b7bc558 debug

BOSH session marked as inactive at 1351153133

Oct 25 01:18:53 socket debug server.lua: closed client handler and

removed socket from list

Oct 25 01:18:53 mod_bosh debug Destroying the request now...

Oct 25 01:18:53 httpserver debug Destroying request ccd1d0

Oct 25 01:18:53 mod_bosh debug Session

9096614e-a319-4234-b281-d5806b7bc558 has 0 out of 1 requests open

Oct 25 01:18:53 mod_bosh debug and there are 0 things in the

send_buffer

Oct 25 01:18:53 socket debug server.lua: accepted new client

connection from 127.0.0.1:41315 to 5280

Oct 25 01:18:53 mod_bosh debug BOSH body open (sid:

9096614e-a319-4234-b281-d5806b7bc558)

Oct 25 01:18:53 mod_bosh debug Session

9096614e-a319-4234-b281-d5806b7bc558 has 1 out of 1 requests open

Oct 25 01:18:53 mod_bosh debug and there are 0 things in the

send_buffer

Oct 25 01:18:53 mod_bosh debug Have nothing to say, so

leaving request unanswered for now

Oct 25 01:18:53 httpserver debug Request d8b230 left open,

on_destroy is function(mod_bosh.lua:81)

Oct 25 01:18:53 bosh67a53eee-1bdb-41f6-98cb-2413808fad65 debug

BOSH client inactive too long, destroying session at 1351153133

Oct 25 01:18:53 bosh67a53eee-1bdb-41f6-98cb-2413808fad65 info

Destroying session for (unknown) ((unknown)@localhost)

有任何想法吗?在此先感谢您的帮助.

jaxl php,php – jaxl无法连接到Prosody相关推荐

  1. jaxl php,php往mysql写数据,中文乱码有关问题

    php往mysql写数据,中文乱码问题. 最近做一个聊天的项目,用了jaxl来让xmpp server转发消息给web server.然后webserver会保存消息到本地数据库(mysql). 发现 ...

  2. 将 instance 连接到 first_local_net - 每天5分钟玩转 OpenStack(82)

    上一节 first_local_net 已经就绪,下面创建 instance 并将其连接到该网络. 将 instance 连接到 first_local_net launch 一个 instance, ...

  3. ssh服务器拒绝证书,使用SSH.NET以密钥文件连接到SFTP(权限被拒绝(publickey))...

    我在Visual Studio 2008和.NET Framework 3.5中有一个C#控制台应用程序.使用SSH.NET以密钥文件连接到SFTP(权限被拒绝(publickey)) 为了测试目的, ...

  4. mysql如何下载连接到visual_Visual Studio 2015 Community连接到Mysql

    Visual Studio 2015 Community连接到MySQL,步骤很简单,但刚弄的时候一脸懵,现在记录如下以作备忘: 安装好VS2015和Mysql后,只需要再安装两个东西即可. 一个是S ...

  5. Work with Alexa :Echo匹配连接到Alexa

    背景: 通过蓝牙可以让你的智能家居设备和Echo设备连接起来,从而达到Echo通过语音控制智能家居设备. 什么事Alexa Gadgets? 我的理解Alexa Gadgets是智能家居设备的一部分, ...

  6. 重磅 | 王劲被百度起诉后首露面:称打印机电脑已报废,赔了318块钱,没接到法院传票

    本文授权转自网易智能(smartman163) 今天,广州市黄埔区.广州开发区与景驰科技就无人驾驶汽车项目签署投资合作协议,景驰科技核心团队将从硅谷迁回黄埔区.广州开发区,建立全球总部,从2018年第 ...

  7. 接到面试通知你该做什么?

    要得到任何一个职位,必须经过面试这一关,短短几十分钟的面试也许就决定着你的职业生涯,当你接到企业的面试通知电话后,应该做什么呢? 一.接到面试通知电话时一定要问清楚应聘的公司名称.面试地点(包括乘车或 ...

  8. 使用ssh连接到centos7中docker容器

    docker现在越来越流行,接下来为大家介绍一下如何使用ssh连接docker. 任务 使用ssh连接到centos7中docker容器 实验步骤 因为docker中容器的ip通常来说是和真机以及ce ...

  9. pandas使用split函数将dataframe中的特定列表字段(list column)裂变为多个数据列并拼接到原dataframe中

    pandas使用split函数将dataframe中的特定列表字段(list column)裂变为多个数据列并拼接到原dataframe中(splitting column of lists into ...

  10. Visual Studio2015如何连接到windows azure(国内版本)

    Visual Studio2015如何连接到windows azure(国内版本) 说到vistual studio相信大家已经不陌生了,当然对于开发人员来说.同时又说到windows azure的相 ...

最新文章

  1. 第三章GIT使用入门
  2. jackson json 转换Bean, Bean 里没有对应的值 jackson Unrecognized field
  3. python3 Connection aborted.', RemoteDisconnected('Remote end closed connection without response'
  4. kafka分区停留在UnderReplicated状态
  5. 译注(1): 为什么大多数编程语言里,= 号被用来做赋值操作符?
  6. python 异步 生产者 消费者_python线程------queue、生产者和消费者模式
  7. 安全架构--14--企业安全管理体系建设总结
  8. Omapl138 AT070TN83 lcd驱动移植
  9. 关于5G通信技术,你了解多少?
  10. 此前小编为大家介绍了女人吃鸡蛋的好处,想必大家对鸡蛋这种蛋类有了更多的了解。今天小编为大家介绍另一种蛋类——鸭蛋。鸭蛋又名鸭卵,是人们经常食用的一种蛋类食品,与鸡蛋营养相当,吃它的好处众多。那么女人吃
  11. UOS系统龙芯架构deb安装包打包实践
  12. Node.js + Web Socket 打造即时聊天程序嗨聊(上)
  13. Android 三星手机拍照图片旋转处理
  14. python AIOT教程一1.必备多元函数微分学理论基础
  15. 文思海辉笔试题目java_2013文思海辉java笔试题(最新版带答案)
  16. 侠探锦毛鼠之真假白玉堂
  17. Unity与Android交互(双端通信)
  18. 4天完成一个物联网项目
  19. 密集环境下物体吸取可供性检测及其自监督学习方法
  20. 托爾斯泰《安娜‧卡列妮娜》的寫作背景

热门文章

  1. 做好的ppt太大怎么变小
  2. Linux下sh文件执行权限不够
  3. 集赞生成器:朋友圈集赞不求人
  4. h5 video标签
  5. WPS页眉页脚怎么设置每页不同
  6. android 版本更新 静默安装及自启动
  7. 百度网盘视频加速播放
  8. compute的c语言用法,词汇精选:compute的用法和辨析
  9. Qt手动设置Kits套件
  10. 2021年程序员平均工资