Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm using LWP:Simple to retrieve a small xml file (<2kb) from a web server that requires authentication, but it's unbelievably slow.... it takes about 25 seconds!
use LWP::Simple;
$URL='http://'.USER.':'.$PASSWORD.'@'.$IPADD.':'.$PORT.'/cgi-bin/status.xml';
$myxml = get($URL);
I can do the equivalent in PHP using file_get_contents(), which takes a blink of the eye. Any ideas why LWP:Simple is being so slow?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP:Simple too slow
by Corion (Patriarch) on Sep 16, 2009 at 06:55 UTC | |
|
Re: LWP:Simple too slow
by whereiskurt (Friar) on Sep 16, 2009 at 11:43 UTC |