Ok, what u have said is absolutely right.
I'm giving you here a session with jabber server.
step1: telnet hostname 80
step2:
PUT http://hostname:5222/ HTTP/1.0
Content-Length: 122
User-Agent: test
Host: hostname
<?xml version='1.0'?><stream:stream to="hostname"
xmlns="jabber:client"
xmlns:stream="http://etherx.jabber.org/streams">
the reply is like this
HTTP/1.0 200 OK
Server: jabber/xmlstream-hack-0.1
Expires: Fri, 10 Oct 1997 10:10:10 GMT
Pragma: no-cache
Cache-Control: private
X-Cache: MISS from proxyname
Proxy-Connection: close
<?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/strea
ms' id='3B064226' xmlns='jabber:client'
from='hostname'>
step3:
the I sent the following
PUT http://hostname:5222/ HTTP/1.0
Content-Length: 150
User-Agent: test
Host: hostname:5222
<iq type="set" id="1"><query
xmlns="jabber:iq:auth"><username>xyz</username><password>xyz123</password><resource>xxxxxxx</resource></query></iq>
here after i'm not getting any reply from either
jabber server or from proxy.Its hanged up.The same
problem i'm facing when i tried with my client.Is
there i'm doing something wrong or something i'm
missing.I have installed jabber 1.4.1 server.pl help
me by giving some sample session through HTTP proxy.
Thanks and regards
Prasant
--- Max Horn <[EMAIL PROTECTED]> wrote:
> At 0:02 Uhr -0700 19.05.2001, prasanta lenka wrote:
> >Hi,
> > I found one document for HTTP proxy passthrough
> at
> >http://jabber.org/?oid=971 .I have one doubt.
> >
> >first, one will create a socket and connect to
> >proxy.Then he will write on the socket the
> following
> >request
> >
> >PUT http://jabber.org:5222/ HTTP/1.0
> > User-Agent: test
> > Host: jabber.org:5222
> >
> > <stream:stream to="jabber.org"
> >xmlns="jabber:client"
> >xmlns:stream="http://etherx.jabber.org/
> >
> >
> >The Jabber server, after receiving this, will
> respond
> >appropriately with:
> >
> > HTTP/1.0 200 Ok
> > Server: jabber/xmlstream-hack-0.1
> > Expires: Fri, 10 Oct 1997 10:10:10 GMT
> > Pragma: no-cache
> > Cache-control: private
> > Connection: close
> >
> > <?xml version='1.0'?><stream:stream
> >xmlns:stream='http://etherx.jabber.org/streams'
> >id='3AC96385' xmlns='jabber:client'
> from='jabber.org'>
> >
> >
> >and the proxy will close the connection.
>
>
> No! The proxy will *not* close the connection! Let
> me cite from the
> aforementioned document: "The trick is, you leave
> the socket open so
> that you can send more data on it." ... "And of
> course, the server
> will keep the socket open..."
>
>
>
> Max
> --
> -----------------------------------------------
> Max Horn
> C++/ObjC/Java Developer
>
> email: <mailto:[EMAIL PROTECTED]>
> phone: (+49) 6151-494890
> _______________________________________________
> jdev mailing list
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev