When compared to a web browser, it gives about the same or up to 2 times slower time, which is not very bad.
Pumping data (140k) takes a significant part of time compared to sending request--up to first byte received. So the process may benefit if only the head (up to known length) is taken and then reading interrupted. This will need an enhancement to the code. > From: Brian Schott <[EMAIL PROTECTED]> > > Oleg, > > Yes, your suggestion works nicely, if a little slow; > but that is not a problem for this application. I was > worried at first that it would not work because first I > tested it with jconsole and was booted out *immediately* > after the httpget every time. But no such anomoly occurs > with the Java IDE, which is acceptable to me. > > Thanx a bunch. > > On Sat, 12 Jul 2008, Oleg Kobchenko wrote: > > + You may want to take a look at the httpget.ijs script. > + > + http://www.jsoftware.com/jwiki/Scripts/HTTP_Get > + > + > the number of messages for its month: "Messages: 357". > + > + load '~user/httpget.ijs' > + require 'regex' > + > + A=: > httpget'http://www.jsoftware.com/pipermail/programming/2007-October/thread.html' > + > + 'Messages:[^0-9]*([0-9]+)' (,.@:{:@rxmatch ];.0 ]) A > + 357 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
