How do I can download the default web page from a domain using wget ? Example:
http://www.mydomain.com returns index.html as default page and http://www.newdomain.com returns default.html as default page. So, using wget as wget [options] www.mydomain.com must download index.html and wget [options] www.newdomain.com must download default.html.
Wgetsupports filenames not just domain names.You will never know what the default name of a file is (as a end user) only the server knows this. When you send a response to http://www.domain.com what the webserver for http://www.domain.com gets is
GET /the webserver then looks in the / directory and discovers what the default file is (index.html, default.html or anything else the server admin has set as the default. You then just get sent that copy back. So you don’t need to do anything as the end user to get the default page, it just happens by itself.