Results 1 to 4 of 4

Thread: Trying to get host header information from IIS.

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    12

    Arrow Trying to get host header information from IIS.

    Is there a function or method for retrieving header values from IIS? I'm having a crazy time trying to find information in the internet about it. All I want to do is obtain the URL from IIS relative to a website called 'website one'. The website name will always be the same and I'll always need to retrieve the same URL value from it.

    Oh....and !

  2. #2

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    12

    Re: Trying to get host header information from IIS.

    Searching has given me the impression that this is only available on .NET framework 3.5 with the Microsoft.Web.Administration Namespace, is this true? I'm running.NET framework 2.0 on IIS 6. Thanks.

  3. #3
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Trying to get host header information from IIS.

    I don't know if this helps but... Open an IIS log file and see if it contains any information you need. If it does, you can write code to parse the log file for the needed information. You can even download log file parser program from Microsoft and use it to query for the data you need.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    12

    Re: Trying to get host header information from IIS.

    Good idea. Do you know if the information in the log files is always the same as what's in the host headers in IIS?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width