Thread LWP::UserAgent und 401 Unauthorized (45 answers)
Opened by bianca at 2013-06-12 21:07

pq
 2013-06-12 21:33
#168121 #168121
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
das erste argument für credentials muss server und port sein:
Code: (dl )
1
2
3
4
5
6
7
8
       $ua->credentials( $netloc, $realm )
$ua->credentials( $netloc, $realm, $uname, $pass )
Get/set the user name and password to be used for a realm.

The $netloc is a string of the form "<host>:<port>". The username and password will only
be passed to this server. Example:

$ua->credentials("www.example.com:80", "Some Realm", "foo", "secret");
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread LWP::UserAgent und 401 Unauthorized