Yes, John is correct. URLConnection sends http header along with the
message. You have to open a Socket and do all the communication using byte
stream. That will work.

-Siva

Subject: Re: [JDEV] A report and a dumb question
From: John Draughn <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: 06 Oct 2001 19:00:12 -0500
Reply-To: [EMAIL PROTECTED]

You can't use the URLConnection to connect to port 5222.  That's
expecting XML streams (see JPG), and http headers would be sent.

-John


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to