kaancho12
Technical User
- Feb 22, 2005
- 191
hi, does anybody have an example of
$ua->get_basic_credentials( $realm, $uri)
i have tried to use it this way:
#!/usr/bin/perl -w
use HTTP::Request::Common;
require LWP::UserAgent;
my $ua =new LWP::UserAgent;
$ua->get_basic_credentials('TestRealm','
but i keep on getting this error:
Can't locate object method "host_port" via package " (perhaps you forgot to load " at /usr/lib/perl5/site_perl/5.8.0/LWP/UserAgent.pm line 565.
The manual for this method says:
This is called by request() to retrieve credentials for documents protected by Basic or Digest Authentication.
I am not sure how to use this. Any help??
thanks
$ua->get_basic_credentials( $realm, $uri)
i have tried to use it this way:
#!/usr/bin/perl -w
use HTTP::Request::Common;
require LWP::UserAgent;
my $ua =new LWP::UserAgent;
$ua->get_basic_credentials('TestRealm','
but i keep on getting this error:
Can't locate object method "host_port" via package " (perhaps you forgot to load " at /usr/lib/perl5/site_perl/5.8.0/LWP/UserAgent.pm line 565.
The manual for this method says:
This is called by request() to retrieve credentials for documents protected by Basic or Digest Authentication.
I am not sure how to use this. Any help??
thanks