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 :wave: !
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.
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.
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?