Gorby has asked for the wisdom of the Perl Monks concerning the following question:

Hello Wise Monks. I would just like to ask if it's at all possible that when using the get() function of the LWP::Simple module, calling get() only once in my code can result in the url getting called more than once due to network connection fluctuations? Does get() automatically retry retrieving the url if it doesn't quite succeed the first time? If so, how can I instruct get() to only try exactly once? Thanks in advance! - Gorby

Replies are listed 'Best First'.
Re: LWP:Simple repeating requests?
by lakshmananindia (Chaplain) on May 07, 2009 at 12:40 UTC
    Does get() automatically retry

    It is not documented. You can try with LWP::Useragent's get method.

    --Lakshmanan G.

    The great pleasure in my life is doing what people say you cannot do.


      I checked source, it doesn't retry.
Re: LWP:Simple repeating requests?
by Anonymous Monk on May 07, 2009 at 12:05 UTC
    Get does not retry, but it will follow redirect
Re: LWP:Simple repeating requests?
by gemoroy (Beadle) on May 07, 2009 at 12:15 UTC
    What abount just  while(!defined(get("myurl")){...}