dparzych has asked for the wisdom of the Perl Monks concerning the following question:
When the ua->credentials line is included the authentication doesn't even work for the first realm. If that is excluded the first realm authenticates but the second realm fails. Is there a way of sending 2 sets of credentials for 2 different realms.$uri = "HTTPS://$host:$port/path"; $ua = new LWP::UserAgent; $h = new HTTP::Headers; $h->header('Authorization' => "Basic $authinfo"); $request = new HTTP::Request('POST', $uri, $h, $content); $ua->credentials("$host:$port",'realm2',$userid,$password); $response = $ua->request($request); print $response->status_line; print $response->as_string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Authenticating against multiple realms
by shmem (Chancellor) on Sep 25, 2006 at 21:29 UTC |