Results 1 to 2 of 2

Thread: Request.ServerVariables("HTTP_HOST")

  1. #1
    Join Date
    Dec 1969

    Default Request.ServerVariables("HTTP_HOST")

    Hello,<BR>Had a question about Request.ServerVariables("HTTP_HOST"). Is it supposed to return "" all the time or could it return "" sometimes as well. Just been bickering with the network nazi, and to prove him wrong would make my day :p<BR>Thanks for any input

  2. #2
    Join Date
    Dec 1969

    Default Well...

    ...if you&#039;re running the script under IIS, then you could use Request.ServerVariables("SCRIPT_HOST"), I think. That returns the full subdomain.<BR><BR>Do a quick bit of script:<BR><BR>&#060;%<BR>For Each varItem in Request.ServerVariables<BR> Response.Write varItem & " = " & Request.ServerVariables(varItem) & "<BR>"<BR>Next<BR>%&#062;<BR><BR>See what it throws back.<BR><BR>Craig.

Posting Permissions

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