gregstout wrote:
When I run this, I get a "connection refused" message.
Are you really getting "connection refused" instead of something like "401 Unauthorized"?
If so, it sounds like your web server is not listening on the localhost (127.0.0.1) IP address, which doesn't really have anything to do with HTTP authentication.
If you are running Apache, look in your config for a "BindAddress" or "Listen" directive. If you have a specific IP(s) listed there, then Apache will only listen on those IP(s).