Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8049491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:48:05+00:00 2026-06-05T06:48:05+00:00

Is the server variable HTTP_HOST always defined for all servers, or for example in

  • 0

Is the server variable HTTP_HOST always defined for all servers, or for example in IIS is defined with other name or even is not defined at all?

Also, that value is always defined? Or some host they don’t define that value? Is there any other way to retrieve that value?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:48:06+00:00Added an answer on June 5, 2026 at 6:48 am

    Quoting the manual

    HTTP_HOST is

    Contents of the Host: header from the current request, if there is one. 

    HTTP_HOST is a part of the client’s HTTP request and specifies which host name the request is to be directed to. if HTTP_HOST is not set, the client is either very, very old (HTTP 1.0 doesn’t support HTTP_HOST) or has made a request directly to your web site’s IP.

    I think the Host HTTP Header is mandatory since HTTP 1.1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do a remove a instance of a System.String variable? $Servers = server,localhost I
what is the $_SERVER variable that will allow me to see the friendly URL
I want to access the server side variable in javascript alert. <asp:Button id=btnDelete runat=server
I have the following table variable in SQL Server 2005: DECLARE @results TABLE (id
in SQL Server, if I have an int variable, how can I write a
I am going to pass an variable from asp.net server to the javascript but
I have odd problem: After starting server I got this error: undefined local variable
I'd like to do this : Simple request to the server; Put a variable
I am working on a shared hosting server setting up something that was working
I have a function in my company's site that uses the cgi.remote_host variable to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.