S
schimata
Hi guys,
I ahve the following code:
++++++++++++++++++++++++
use Cwd;
use XML:arser;
use LWP::Simple;
use HTTP::Status;
use LWP::UserAgent;
blah..blah..
blah..
my $ua = LWP::UserAgent->new;
$ua->timeout(1000);
$ua->env_proxy;
# $ua->credentials( 'tracker:80', 'tracker', 'hello' => 'abcd@123' );
my $url ='http://tracker/cfdocs/proddev/admin/ws/api/
get_all_subfeatures.cfm';
print "hello";
my $response = $ua->get($url);
+++++++++++++++++++++++++++++++
Now when I run this script, I get the following error:
++++++++++++++++++++++++++++++++++++++++++++++++++++
Can't locate object method "get" via package "LWP::UserAgent" at C:\cq
\featurexml.pl line 37.
++++++++++++++++++++++++++++++++++++++++++++++++++++
I think that it is the issue with the LWP stuff here. I see the below
versions of perl and LWP:
++++++++++++++++++++++++++++++++++++++
C:\cq>perl -v
This is perl, v5.6.0 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2000, Larry Wall
Binary build 623 provided by ActiveState Tool Corp. http://www.ActiveState.com
Built 16:27:07 Dec 15 2000
C:\cq>perl -MLWP -e "print $LWP::VERSION"
5.48
+++++++++++++++++++++++++++++++++++++++
Do I need to re-compile LWP pachage? Any pointers here?
Thanks,
Srini
I ahve the following code:
++++++++++++++++++++++++
use Cwd;
use XML:arser;
use LWP::Simple;
use HTTP::Status;
use LWP::UserAgent;
blah..blah..
blah..
my $ua = LWP::UserAgent->new;
$ua->timeout(1000);
$ua->env_proxy;
# $ua->credentials( 'tracker:80', 'tracker', 'hello' => 'abcd@123' );
my $url ='http://tracker/cfdocs/proddev/admin/ws/api/
get_all_subfeatures.cfm';
print "hello";
my $response = $ua->get($url);
+++++++++++++++++++++++++++++++
Now when I run this script, I get the following error:
++++++++++++++++++++++++++++++++++++++++++++++++++++
Can't locate object method "get" via package "LWP::UserAgent" at C:\cq
\featurexml.pl line 37.
++++++++++++++++++++++++++++++++++++++++++++++++++++
I think that it is the issue with the LWP stuff here. I see the below
versions of perl and LWP:
++++++++++++++++++++++++++++++++++++++
C:\cq>perl -v
This is perl, v5.6.0 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2000, Larry Wall
Binary build 623 provided by ActiveState Tool Corp. http://www.ActiveState.com
Built 16:27:07 Dec 15 2000
C:\cq>perl -MLWP -e "print $LWP::VERSION"
5.48
+++++++++++++++++++++++++++++++++++++++
Do I need to re-compile LWP pachage? Any pointers here?
Thanks,
Srini