[JDEV] Error in XML Parsing through HTTP Proxy

Matthias Wimmer m at tthias.net
Fri Aug 2 01:54:47 CDT 2002


Hi Vincent!

Vincent Ong wrote:

>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"
>  
>
[...]

>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>
>  
>
No ... you get the error because you try to use polling with a direct 
connection to the server. The server doesn't understand polling ... you 
have to use some software in the middle like my Java-Servlet 
(http://devel.amessage.de/JabberPollingServlet/).


Tot kijk
    Matthias

-- 
Fon: +49-700 77007770		http://matthias-wimmer.de/
Fax: +49-89 312 88654		jabber://mawis@charente.de





More information about the JDev mailing list