in reply to Re^5: http get with perl, help needed
in thread http get with perl, help needed

$ua->credentials("test.test.com:80", "Realm", $user, $passwd);

The realm is supplied in the header of the 401 reply.

Replies are listed 'Best First'.
Re^7: http get with perl, help needed
by Anonymous Monk on Oct 17, 2008 at 13:48 UTC
    Not getting anything back from the reply other than the 401, if I run a trace that should give me the realm?

      The realm is supplied in the header of the 401 reply.

      IIRC, a quick and dirty way of dumping the header (well, the entire response) is

      print($response->as_string());