[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTTP 1.0 / 0.0 discrimination




Question:

  A HTTP 1.0 (or 1.1) capable server recognizes the kind of client it
deals with by examining whether the client closes the send channel of the
socket after sending GET <something> <CR><LF> by using shutdown(t,1) for
example ? 

  I was unable to dig this information out from the RFCs and I am too lazy
to look at the sources of a server. BTW if someone makes a HTTP 0.0
request and the server returns HTTP 1.0 / 1.1 data (with MIME headers)
then the browser that is not capable to understand this simply ignores the
headers. Correct ?

  And finally: If a document is sent in HTTP 0.0 and has no length header
then it MUST be encapsulated in the <HTML></HTML> tags. But if it is sent
as HTTP 1.0 or 1.1 then the tags are redundant (because the size of the
document is known). Wrong or right ?

Peter Lorand Peres
------------------
plp@actcom.co.il 100310.2360 on CIS (please use Internet address for mail)
http://ourworld.compuserve.com/homepages/plp

"The creed of Inland Revenue is simple: 'If we can bring one little smile to one
little face today - then somebody's screwed up somewhere' - David Frost

(Note: The above stands valid in all countries until proven wrong)