tcpdump is your friend (or even better: tcpflow which I found out about yesterday)
On 11/22/05, Jabber X <[EMAIL PROTECTED]> wrote: > It didnt seem to make a difference. > The problem seems to be the server is closing the connection when trying to > send the second piece of xml data. It responds fine to the first > > > On 11/20/05, Ulrich Staudinger <[EMAIL PROTECTED]> wrote: > > Jabber X schrieb: > > > > The data i am trying to send is embedded in the strings in the example > > > > > > On 11/20/05, Ralph Meijer <[EMAIL PROTECTED] > wrote: > > > On Sun, Nov 20, 2005 at 08:01:40PM +0000, Jabber X wrote: > > > > I have started coding with Jabber but am having problems early on > with what i > > > > suspect in bad formatting in the Xml. > > > > I send the initial xml to make the stream connection and then try to > register > > > > an account but the server closes the connection. When trying this on a > telnet > > > > client it does give me a stream error which says disconnected. > Occasionally > > > > upon trying other xml such as a login stream it might say invalid xml. > > > > I put together this quick example below to illustrate the problem. > > > > Any help would be greatly appreciated > > > > > > An actual trace of the data you are trying to send that gives the errors > > > would help... > > > > > > -- > > > Groetjes, > > > > > > ralphm > > > > > > > > > I think you need to a) send a newline after the <?...?> xml preamble and > b) insert a space in the xml preamble before the final ? ( "<?xml > version='1.0' ?>\n" ) > > > > Cheers, > > Ulrich > > > > > > -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/
