Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Re: HTTP::Proxy and Trillian

by gryphon (Abbot)
on Oct 13, 2003 at 18:20 UTC ( #298907=note: print w/replies, xml ) Need Help??

in reply to Re: HTTP::Proxy and Trillian
in thread HTTP::Proxy and Trillian

Greetings robartes,

It could be that the AIM and MSN Messenger clients attempt a CONNECT first, then on failure try a GET/POST instead. I've heard that AIM actually tries a few different ports, eventually dropping to HTTP GET on 80. Perhaps Trillian attempts CONNECT, fails, complains, and stops.

If this is the case, would looking at Net::HTTPTunnel be worth my time? Or perhaps another solution?

The other idea I had (again, from the brain of a networking newbie) was to create a custom client/server proxy pair. The client would sit on my system and act just like a proxy except that it would convert all requests to it into HTTP GET on port 80 and ship them to the "server". That server is, say, my box at home. It would pick up the requests, translate them back, gather data, ship back to me in my isolation chamber here at the office.

Is this a dumb idea?

code('Perl') || die;

Replies are listed 'Best First'.
Re^3: HTTP::Proxy and Trillian
by robartes (Priest) on Oct 13, 2003 at 18:33 UTC
    Funnily enough, I considered Net::HTTPTunnel, but that needs another HTTP proxy that does the CONNECT. From your description, I thought that this was not an option for you. However, if you have such a proxy on your corporate network, and such use of it is allowed, you can use Net::HTTPTunnel to create a local socket on your workstation you can connect Trillian to (although you could just as easily use that hypothetical corporate proxy directly).

    Translating IM messages into HTTP requests - as you are proposing - is possible, but it's a bit like getting a camel to sleep on a trampoline - it will work, but it's extremely awkward, both for you and the camel (not to mention the trampoline). The problem with IM traffic is that it is not just you requesting stuff, as in HTTP, but also the server sending you things on its own initiative. That will not work in HTTP, unfortunately, unless the IM server supports some kind of store and forward scheme for messages, which you can then poll regularly. But I have no knowledge of servers like that, so I cannot help you there.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://298907]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2020-11-28 06:09 GMT
Find Nodes?
    Voting Booth?

    No recent polls found