LWP::Simple::get returns undef for some Web pages
dave_nul_at_hotmail.com
Date: 12/26/04
- Next message: David Golden: "[ANNOUNCE] Test::Float -- compare numbers to specified precision"
- Previous message: Xavier: "Pb with h2xs"
- Next in thread: Arne Sommer: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: Arne Sommer: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: Joe Smith: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: dave_nul_at_hotmail.com: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: Joe Smith: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: dave_nul_at_hotmail.com: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: Arne Sommer: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: dave_nul_at_hotmail.com: "Re: LWP::Simple::get returns undef for some Web pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Dec 2004 11:54:46 -0800
I'm trying to write a sub that can get all sorts of Web pages, and find
that LWP::Simple::get works well for most non-authenticated pages, but
not for all. Below is some sample code to illustrate. Any ideas on
why the first get() fails to return anything but undef?
use LWP::Simple qw( get );
## Example of page for which LWP::Simple::get returns undef. Using
## LWP::UserAgent does not work, either. Nor does
## "use LWP::Simple qw( get $ua );". Those last two ideas are from
## suggestions in newsgroup postings.
print get( 'http://www.worldtimeserver.com/time.aspx?locationid=UTC') .
"\n";
## ASP is not the problem, because this works.
print get(
'http://www.bulova.com/brands/bulova/collections.aspx?id=22&gender_id=1'
) . "\n";
- Next message: David Golden: "[ANNOUNCE] Test::Float -- compare numbers to specified precision"
- Previous message: Xavier: "Pb with h2xs"
- Next in thread: Arne Sommer: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: Arne Sommer: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: Joe Smith: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: dave_nul_at_hotmail.com: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: Joe Smith: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: dave_nul_at_hotmail.com: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: Arne Sommer: "Re: LWP::Simple::get returns undef for some Web pages"
- Reply: dave_nul_at_hotmail.com: "Re: LWP::Simple::get returns undef for some Web pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|