Description: This Java tutorial describes how to connect to a URL using Basic authentication. It makes a URL connection to a web site and sets the 'Authorization' request property to be "http://192.168.1.1"; String name = "admin"; String password = "admin"; String General Java :: How do I create a Login Module?.