473,408 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Does each HTTP Request have "Host:" header?

regards:

Does each HTTP Request have "Host:" header?

Any positive suggestion is welcome.
thank you
May goodness be with you all
Jul 24 '05 #1
7 7704
mike wrote:
regards:

Does each HTTP Request have "Host:" header?


Yes.

You're asking in the wrong place, though, as I'm sure you'll be told 14
times by 12 other people. :)

http://www.w3.org/Protocols/#Specs for some serious study on the subject.
Jul 24 '05 #2
Peter1968 wrote:
mike wrote:
regards:

Does each HTTP Request have "Host:" header?


Yes.

You're asking in the wrong place, though, as I'm sure you'll be told 14
times by 12 other people. :)

http://www.w3.org/Protocols/#Specs for some serious study on the subject.


Further to what I wrote; taken from RFC 2616:

The most common form of Request-URI is that used to identify a
resource on an origin server or gateway. In this case the absolute
path of the URI MUST be transmitted (see section 3.2.1, abs_path) as
the Request-URI, and the network location of the URI (authority) MUST
be transmitted in a Host header field. For example, a client wishing
to retrieve the resource above directly from the origin server would
create a TCP connection to port 80 of the host "www.w3.org" and send
the lines:

GET /pub/WWW/TheProject.html HTTP/1.1
Host: www.w3.org

followed by the remainder of the Request. Note that the absolute path
cannot be empty; if none is present in the original URI, it MUST be
given as "/" (the server root).

Hope that helps you out.
Jul 24 '05 #3
regards:

Sorry,I am not very familiar with google NET forum.

thank you for your patient reply and instructions.
May goodness be with you all
Jul 24 '05 #4
regards:

Sorry,I am not very familiar with google NET forum.
I will make a correction.

thank you for your patient reply and instructions.
May goodness be with you all
Jul 24 '05 #5
Tim
On 6 Apr 2005 00:06:30 -0700,
s9*****@mail.yzu.edu.tw (mike) posted:
Sorry,I am not very familiar with google NET forum.


This is *usenet* (newsgroups), to which using Google is just one way to
access it. It's usenet that you want to find out how to use. Don't pick
up bad habits from web forums.

Going from memory, there's a newsgroup with "newusers" as part of its name
which has regular postings about how it all works, for new users to read.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 24 '05 #6
In article <E0****************@news-server.bigpond.net.au>, Peter1968 <es****@nonsensebigpond.net.au> wrote:
mike wrote:
regards:

Does each HTTP Request have "Host:" header?


Yes.


Off-topic, but...

For HTTP/1.1, the Host: header is a required field. In HTTP/1.0, it is not
even defined as a header. However, the Host: header became widely implemented
in browsers before HTTP/1.1 to support name-based virtual web server hosting.

So while your server *may* never see a HTTP request without a Host: header, it
can certainly happen, so you should consider what to do in that case. Or if
the Host: header provided makes no sense, or contains some type of system
commands...
Jul 24 '05 #7
In article <19******************************@40tude.net>, Tim writes:
On 6 Apr 2005 00:06:30 -0700,

s9*****@mail.yzu.edu.tw (mike) posted:
Sorry,I am not very familiar with google NET forum.


This is *usenet* (newsgroups), to which using Google is just one way to
access it. It's usenet that you want to find out how to use. Don't pick
up bad habits from web forums.

Going from memory, there's a newsgroup with "newusers" as part of its name
which has regular postings about how it all works, for new users to read.


That would be "news.announce.newusers". Used to be most newsreaders were
configured to come up subsciribed to that group until the user unsubscribed.
Too bad that Web-based Usenet access providers can't be bothered to do that.

--
Michael F. Stemper
#include <Standard_Disclaimer>
Visualize whirled peas!

Jul 24 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: JT | last post by:
if i am using https, will this work the same as if i were using http? Request.ServerVariables("HTTP_HOST") returns www.mywebsite.net for http. what about https?????
4
by: mike | last post by:
regards: Is it possible to get the next hyperlink location in "EACH HTTP REQUEST HEADER?" Or, --------------------------------------------------------------------------- Does the following...
3
by: ashesdesign | last post by:
Hi All, I am very new to php and even newer to XML. Can anyone please shed some light on how to post XML requests via HTTP. I have been searching high and low and have come across many...
1
by: lasabo | last post by:
Hi, I'm trying to write a software that log in to a password- protected page, but when I try to open the page and send inn the password, the server refere to the index.htm before I get to post...
4
by: Greg Cyrus | last post by:
Hi, in a Page_Load I use: Response.Redirect("http://localhost/WebApplication3/frmDefault.aspx") Now the IExplorer shows "http://localhost/WebApplication3/frmKopf.aspx" in the adress-field....
0
by: Owen | last post by:
Hello everyone, I am using VS.NET 2003(Trandition Chinese) Edition, and httpLook software for checking http requests. I found a problem that the following programs don't really "POST". These...
4
by: Lloyd Dupont | last post by:
I can't use Control.ResolveUrl because I need to write the conversion in a utility class. However I know the current context. How could I convert the URL to one usable by the user? -- I have...
1
by: srinu | last post by:
Hello, We had one webserver based on a linux machine. The website is fully function and designed by a different person. Now we moved the machine from one IP to another one. I changed the...
1
by: Object01 | last post by:
Are there any known issues regarding the use of Request.Url.Host on an SSL-enabled site? Requests for my application are of the form http://abc.com/myPage.aspx, but Request.Url.Host returns...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.