[JDEV] Error in XML Parsing through HTTP Proxy

Vincent Ong kwong at sasoft.com.my
Fri Aug 2 01:04:01 CDT 2002

Hi All,
	I am trying to use HTTP proxy because my client is behind a firewall. I
have done some testing in a local server I've installed myself. Of course I
have installed a proxy in my own pc (which is together with the server).
When i pass in the XML string through the HTTP Proxy, this is the string
that is sent to the jabber server.

Fri Aug  2 13:47:07 2002  mio.c:760 MIO read from socket 15: POST / HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: Java1.4.0
Host: myserver:5222
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-length: 727
Connection: close

0,<?xml version="1.0" ?><stream:stream to="myserver" xmlns="jabber:client"
stream="http://etherx.jabber.org/streams"><iq type="get" to="myserver">
<query x
mlns="jabber:iq:register"/></iq><iq id="3D47AFFC" type="set"

password><resource>home</resource></query></iq><iq id="3D47AFFC" type="set"
6 at myserver" type="text"><body>Some Message</body></message><message to="vin
cent0616 at myserver" type="text"><body>Some Message</body></message></stream:

Fri Aug  2 13:47:07 2002  mio.c:1054 mio_write called on x: 0 buffer:
HTTP/1.0 2
00 Ok
Server: jabber/xmlstream-hack-0.1
Expires: Fri, 10 Oct 1997 10:10:10 GMT
Pragma: no-cache
Cache-control: private

Because of this, I am getting an error message from the jabber server:
Anything I can do??

XML Parsing Error: syntax error
Fri Aug  2 13:47:07 2002  mio.c:279 write_dump writing data:
<stream:error>Invalid XML</stream:error>

Is there any workaround on this?? I have been stuck with HTTP passthrough
for quite some time now. I hope someone out there can help me. Any help
would be highly appreciated. Thanking you in advance. ;-)

Yours Sincerely,

More information about the JDev mailing list