|
Posted by xhoster on January 20, 2006, 3:29 pm
Please log in for more thread options
jonas.soderstrom@gmail.com wrote:
> Hi I have a problem.
>
> I use LWP::Parallel::Useragent to fetch prices to my Meta Search
> Engine.
It is UserAgent, not Useragent. Case often matters.
>
> It usually works great but now i have a problem.
> There is one site on which it does not work if redirects are enabled.
> At the moment I use simple_request and works my way through every step
> and it works great.
>
> But I want to be able to use the Register method so its truly parallel.
> I know how to turn Redirect of[f] but several of the other sites need
> Redirect to work.
>
> Do you see my problem.
> I want to be able to turn of Redirect on one site but not on the
> others.
I'm not sure if I see the problem or not. The docs for $ua->redirect tells
you to "See $ua->register for how to change the behaviour for particular
requests only." So it seems like all you have to do is decide, before
registering each request, whether the request is to that specific site or
not, and register it accordingly.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
|