Added separate URL's for IPv4 and IPv6
Added support for Basic HTTP Authentication.
improved logging
more logging and error handling
reindented with spaces
trailing spaces