in reply to Re: LWP::SIMPLE fails on certain URL
in thread LWP::SIMPLE fails on certain URL

Hmmm ... i did check the content of the result and nothing was there. I ran the program in the browser, viewed the source and zilch. Regarding what you managed to pull off the site ... it's interesting that the portion retreived is only a fraction of what can be viewed if the URL is entered in the "Address:" box of the browser and source code viewed. I'm still unclear on what may be happening here.
  • Comment on Re: Re: LWP::SIMPLE fails on certain URL

Replies are listed 'Best First'.
Re: Re: Re: LWP::SIMPLE fails on certain URL
by grep (Monsignor) on Jan 27, 2002 at 14:29 UTC
    Here is the code I used:
    #!/usr/bin/perl -w use strict; use LWP::Simple; my $url = "http://wire.ap.org/APnews/center_minor.html?FRONTID=SCIENCE +"; my $body = get("$url"); print "$body";

    If this helps $LWP::Simple::VERSION = 1.35

    Update: I ran it a couple more times and I continue to get content.

    grep
    grep> cd pub
    grep> more beer
      Keep getting "internal server error" using code you posted above. don't know why exactly that if worked for you it shouldn't work for me. will try again later. need to get sleep now. thanks for your input and help.