<?xml version='1.0'?>
<stream:stream
to='example.com'
xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'
version='1.0'>看了一下 关于XMMP协议
客户端 这样发送给 服务器 然后服务器给的回复是<?xml version='1.0'?>
<stream:stream
from='example.com'
id='someid'
xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'
version='1.0'>
… encryption, authentication, and resource binding ...
现在用的是建立了个TCP连接然后发送 得到的回复是
 HTTP/1.1 400 Bad Request问题
1.
<?xml version='1.0'?>
<stream:stream
to='example.com' //这里需要写的是??
xmlns='jabber:client' //这里需要写的是??固定格式??
xmlns:stream='http://etherx.jabber.org/streams'//这里需要写的是??固定格式??
version='1.0'>