[Jslib] Re: HTTP GET / socket.js?
Pete Collins
pete@mozdev.org
Tue, 05 Feb 2002 22:34:36 -0500
Geoff Smith wrote:
> Hi, I'm trying to do an HTTP GET in my script and having some difficulties. There's probably an easy way to do this, but I've yet to find it. Right now I'm using the horribly hacky solution of windows.document.location = [url] and then grabbing the mozilla document contents. Not exactly a brilliant solution, I get a flicker as the contents appear then disappear after I collect them.
>
> I tried using socket.js and just writing the GET to the socket, but it appears socket.js is out of date. Anyone have any pointers to how I'd do a GET? If it's nontrivial, I'll throw the code back into jslib as url.js or something.
>
> Thanks!
Have a look at the chatzilla or jabberzilla code. There is a lot of
socket calles in there.
I'll take any patches. ;-0
Thanks
--pete