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

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