On Sam, 08 Apr 2000, Ulrich Wisser wrote:
> In function on_return I need to correlate the request
> with the original data, is there a way to pass additional
> data to the entry?
you can get the original HTTP::Request object through the entry object,
which should give you the URI you were contacting (which should hopefully
be unique enough). You could also try to subclass the Entry object, though
I'm not sure if this would work out-of-the-box :-|
> Is it possible to get the time needed to fullfill the
> request?
hmm, you could keep your own timings in a separate hash (indexed for
example by the URI), which you'd initialize in "on_connect" with the start
time and then calculate the total time in "on_return". However, this would
only be approximately correct, since an answer from a site can sit in the
queue for a while before PUA gets around processing it...
> Is there maybe already such a program?
not that I know...
> Could anybody send me an example how to use Parallel::UserAgent?
have you found "TestScript.pl" in the "t/" directory of the distribution?
cheers
Marc
--
Marc Langheinrich
[EMAIL PROTECTED]