What is the file name of default web page

Posted on 2011-10-14
Last Modified: 2013-12-16

Looking to find out what is the filename e.g. index.php  when you make a request to a website that you are not managing e.g. by making a request to the website

Any ideas please preferably in .net c#

Question by:stephenwilde
    LVL 82

    Accepted Solution

    The default page is definable in the web server setup.  Common variations include 'index.htm', 'index.html', 'index.php', 'index.jsp', 'default.htm', and 'default.asp'.  You can define it to be any filename you want though if you want to use an odd extension name, you may have to define a 'handler' for it so the web server knows what to do with it.  If all you have is the domain URL like "", there is no way to tell what the default page is set to.  Most of the time it will start with 'index'.

    Author Comment


    But I think out there somewhere may the solution.
    I currently make a call from .net using WebClient client = new WebClient();
    to get the html of the page but I need to know what the file name is of that index/default page it is comming from?
    LVL 35

    Assisted Solution

    by:Miguel Oz

    The solution is valid even with redirections. The property ResponseUri contains the required value.

    Author Comment

    Thanks for info but when I ran the code it came back with a url on property ResponseUri namely http:\\ not what I was looking for which would have been more like default.aspx

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now