I know you can input the Username, Password and Domain for a htpasswd protected URL using the following schema :
http://$username:$password@$Domain
eg :
http://sam:1234@example.com
But would this work for an HTTPS Domain ? And if so would the Username and Password be encrypted in transit ?