[JDEV] HHTP Proxy passthrough
Max Horn
max at quendi.de
Sat May 19 04:25:20 CDT 2001
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:max at quendi.de>
phone: (+49) 6151-494890
More information about the JDev
mailing list