in reply to Retrieviing HTML with LWP::UserAgent
I'm not able to replicate your problem here. The URL you said was returning no content is working just fine; it is a little slow, however. Perhaps the problem is in the calling code; how is it dealing with the content? How have you determined it has no content?
In addition, the parens on your subroutine declaration are wrong, sub retrieve_url () {...} declares retrieve_url as taking no arguments; the parens there are a prototype (see perlsub). You should be using sub retrieve_url { ... }. You probably haven't seen any errors from this because the declaration isn't seen soon enough, but you should be seeing warnings about that (you are using warnings, right?).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Retrieving HTML with LWP::UserAgent
by pg (Canon) on May 27, 2004 at 01:31 UTC |