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

Re: 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 ? 

Wrong. The server can inspect the GET request and find out who is calling it.
The GET request looks like this:
----------------------------------------------------------
GET /WebTelecom/Communication.html?729 HTTP/1.0
Connection: Keep-Alive
User-Agent: Mozilla/3.01Gold (Win95; I)
Pragma: no-cache
Host: 192.114.47.85:80
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*


-----------------------------------------------------
The user-agent field show that it is netscape. 

>
>  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 ?

No correct. 
The serve adapt itself to the HTTP request it gets and answer accordinglly. 



>
>  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 ?

I don't know. I have read the question several times, I have to admit, and
didn't understand it. Is this some kind of an IQ test? :)

>
>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)
>
>
>