From: Evan S. <ev...@ad...> - 2007-03-30 04:39:58
|
On Mar 29, 2007, at 11:43 PM, Sean Egan wrote: > On 3/29/07, Evan Schoenberg <ev...@ad...> wrote: >> But try something that I think oughta be valid: >> Send: xml <iq to='10.0.1.105' type='get'><query >> xmlns='http://jabber.org/protocol/disco#info'/></iq> >> Response: 0 bytes, which libezv normally treats as "connection >> closed" (and >> perhaps properly so). > > <iq/> stanzas MUST have an id attribute. Try adding one and see > what happens. I get the same 0-byte response with: <iq to='10.0.1.105' id='asdf' type='get'><query xmlns=’http:// gaim.sf.net’/></iq> and <iq to='10.0.1.105' id='asdf' type='get'><query xmlns=’http:// jabber.org/protocol/disco#info’/></iq> In both cases, iChat reports that the remote user (the one who sent the XML) left, then reports that it left. When sending blantantly invalid strings directly, it behaves the exact same way; for example, the following: <message to="10.0.1.105"><body>foo</body></invalid> (whereas replacing that </invalid> with </message> works just fine) -Evan |