I tried all different strings for the realm. None of them worked. It doesn't specify the realm when it asks for the password. The word 'realm' doesn't even appear in a Sniffer trace. That's why I expected my sample code to work - it by-passes the credentials/realm problem and returns with the correct username/password. I also made sure I included the port number - 80. That was spelled out on one of the web sites: www.tutorials-blog.com/perl/LWPUserAgent-credentials/.