[smokeping-users] Re: Curl probe doesn't handle multiple url's
Niko Tyni
ntyni+smokeping-users at mappi.helsinki.fi
Fri Dec 2 12:11:28 MET 2005
On Fri, Dec 02, 2005 at 02:18:32PM +1100, Rob de Jong wrote:
> I'd like to measure the time taken to fetch multiple url's with curl,
> eg: urlformat = http://%host%/pdf[1-2].pdf
> My problem is that SmokePing does not seem to handle the fact that curl
> is fetching multiple url's.
> It just grabs the average Total Time of the second url in this case.
> Is there a way I can achieve this?
Hi,
I'm not quite sure if this is a good idea... the curl documentation
states that curl will re-use the same TCP connection when it can, so
you'll get kind of skewed results. What are you trying to measure
anyway? It seems to me that one file would be enough to measure
webserver responsiveness, and if you're trying to measure the bandwidth
of the connection (to see if it's saturated or something), you'd
probably be better off with big ICMP packets.
That said, here's a patch that makes multiple URLs (whether in the
[]/{} notation or with separate arguments) possible. It needs
the 'redirect' patch I sent earlier to be applied first.
Cheers,
--
Niko
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the smokeping-users
mailing list