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

HI,
i am facing a problem with a script i wrote
following is the code
use LWP::UserAgent; my($DEBUG,$proxy,$user,$pwd,$timeout,$VPO)= &get_options; if ($proxy eq '') { print " No Proxy Server specified\n" if ($DEBUG); $proxy='<noproxy>'; $ua=LWP::UserAgent->new; $ua->timeout($timeout) if(defined($timeout)); $req=HTTP::Request->new(GET=> "$url"); $res= $ua->request($req); print "$url---url\n" if($DEBUG); print "status=",$res->status_line,"\n" if($DEBUG); print "is_success=",$res->is_success,"\n" if($DEBUG); }

this used to work just fine.
yesterday i downloaded the new libwww version 5.69 and now i get the following error
FAILED,ERROR:500 Unrecognized identifier s in argspec
i know its a vague questions but those of you who use lwp may have come across the same.
thanks
chimni

Replies are listed 'Best First'.
Re: Getting a web page with LWP
by derby (Abbot) on Jul 22, 2003 at 12:17 UTC
    I don't have an answer (sorry, my LWP is working fine and it's 5.69). But what have you done to track it down? If the debug process seems unweildy to you, check out Effective Perl Programming (we need an id short cut to this). Especially the chapter on Debugging

    -derby

    update: Okay, off the soapbox. What does the url look like? Is it malformed? What protocols does your LWP support ($ua->protocols_allowed). Does that match-up with the url you're trying to GET? Check out the LWP::UserAgent docs for error 500. Can you retrieve the url outside of perl (by a browser or another offline retrieval tool like GET or wget or curl)?

      Hi,
      The url is not malformed and i can access it otherwise .
      It was being accesses by this script .Suddenly the script stopped working.
      i did try to install open ssl but the crypt:ssleay module failed.
      thats the only change on the system.
      protocols_allowed has http,script still fails
      thanks for the input