Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

example of $ua->get_basic_credentials( $realm, $uri )

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top