Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

RE: Push HTTP server documentation

by gregorovius (Friar)
on Jun 12, 2000 at 09:53 UTC ( #17677=note: print w/replies, xml ) Need Help??

in reply to Push HTTP server documentation
in thread Push HTTP server

Cool program. I recently reviewed some code to do similar stuff with java. The interesting part was that they had a tiny applet client hidden in a webpage that held persistant connections to their server. This client had the abilty to 'instruct' the host browser to reload a page (via some java-javascript browser calls) every time the server instructed it to do so. It occurs to me that maybe you could develop a similar client to retrofit the functionality you want to existing browsers. Also, do you have a client to demonstrate the persistant connections that you could show us?

Replies are listed 'Best First'.
RE: RE: Push HTTP server documentation
by mdillon (Priest) on Jun 12, 2000 at 10:01 UTC

    'telnet localhost 9000' should work on almost any platform.

    just type in the commands manually, since they're pretty simple and there aren't too many of them.

    there is also a utility called netcat that is available for most operating systems that will let you do stuff like this:

    echo "GET HELP" | nc localhost 9000

    netcat is available here.

Push HTTP server client
by Corion (Pope) on Jun 12, 2000 at 12:27 UTC

    The "official" position is, that the only such client is telnet, and telnet localhost 9000 in several windows lets you test the multi-user "features" (and bugs) quite well.

    I'm not really fit with Java, in fact, I haven't programmed a single line in it, but I'm interested in that persistent connection feature - do you have any pointers where I could look for the right classes to use ? I imagine a remote control/remote panel for a mp3 player that also has status, progress etc. for multiple computers (wired home).

    After talking to some Java wizard who told me that Java vs. Javascript interaction was not as easy as I thought, I'm thinking of actually writing a specialized client (in Perl), that embeds IE to render the HTML - maybe easier than doing it backwards by using IE to download non-http data ;).