hi,
infact I’ve been working on openfire and xmpp for months. Recently I happened to find a strange problem:
I cannot log on to openfire through http bind, but I can certainly log on with spark, psi or so, which does not go through http bind.
The strange thing is that, if i restart openfire, all things work fine. but after some hours or days, the above problem happened.
When the problem arises, the httpbind post request is as follows:
POST http://trial.ppclass.net:7071/http-bind/ HTTP/1.1
Accept: /
Accept-Language: zh-CN
Referer: http://trial.ppclass.net/static/js/flxhr-1.0.6/flXHR.swf
x-flash-version: 11,4,402,287
Content-Type: text/xml; charset=utf-8
Pragma: no-cache
Content-Length: 299
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
Host: trial.ppclass.net:7071
Connection: Keep-Alive
HTTP/1.1 200 OK
Content-Type: text/xml;charset=UTF-8
Content-Length: 606
Server: Jetty(7.0.2-SNAPSHOT)
PLAINANONYMOUSzlibPOST http://trial.ppclass.net:7071/http-bind/ HTTP/1.1
Accept: /
Accept-Language: zh-CN
Referer: http://trial.ppclass.net/static/js/flxhr-1.0.6/flXHR.swf
x-flash-version: 11,4,402,287
Content-Type: text/xml; charset=utf-8
Pragma: no-cache
Content-Length: 281
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
Host: trial.ppclass.net:7071
Connection: Keep-Alive
Y19jcGx1X3Rlc3RfMUB0cmlhbC5wcGNsYXNzLm5ldABjX2NwbHVfdGVzdF8xA DcyNDcyMTkxNjQ=after the second POST above, the server does not response until after about 10 seconds, the response arrives:
HTTP/1.1 200 OK
Content-Type: text/xml;charset=UTF-8
Content-Length: 70
Server: Jetty(7.0.2-SNAPSHOT)
without success tag, so the client thinks the connection failed.
I’m now using JSJAC in client. anyone could give some suggestions? many thanks!