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

I guess I would use: $ua->credentials, but not sure how to format it to my url.

Replies are listed 'Best First'.
Re^6: http get with perl, help needed
by ikegami (Patriarch) on Oct 17, 2008 at 00:20 UTC
    $ua->credentials("test.test.com:80", "Realm", $user, $passwd);

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

      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());