[JDEV] HHTP Proxy passthrough

Max Horn max at quendi.de
Sat May 19 05:54:45 CDT 2001


At 10:40 Uhr +0100 19.05.2001, Oliver Wing wrote:
>  > 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/
>
>You must put a connection keepalive in here, otherwise the server will
>indeed close the connection, as you saw in your returned request.

Sending keepalive tickles is luckily not so hard, one can "simply" 
send spaces between the XML tags. That is what all clients I wrote do 
anyway, from time to time, to detect dead connections.

However, even with such keep alive tickles, some proxies might close 
the connection after a predefined time, for security reasons. Not 
that I have ever seen this, but then I don´t want to pretend I am a 
HTTP proxy expert. And I could very well imagine this behaviour.


So it might indeed not work with the particular proxy you are behind :/


Max
-- 
-----------------------------------------------
Max Horn
C++/ObjC/Java Developer

email: <mailto:max at quendi.de>
phone: (+49) 6151-494890



More information about the JDev mailing list