[cs631apue] HTTP 0.9 requests

yluo4 yluo4 at stevens.edu
Mon Nov 25 12:23:38 EST 2013


   Does HTTP/0.9 have simple request?  What if we send a full request, 
but HTTP-version is set to HTTP/0.9?  Do we treat it as simple request 
or treat it as HTTP/1.0 request?
   Thanks,
   Yulong


On 11/24/2013 8:11 PM, Jan Schaumann wrote:
> Tejas Nadkarni <tnadkarn at stevens.edu> wrote:
>> To add to the confusion, different websites seem to handle this
>> differently.
> 
> Yes, this is a common problem.  Different developers interpret the RFCs
> differently, and sometimes a common implementation wins (in terms of
> adoption) against the strict rules of an RFC or other standard.
> 
> It is my understanding of the definition of HTTP 0.9 that for any
> request you would return immediately the contents of the file (if 
> found)
> and an HTML document describing the error if it wasn't found.
> 
> Given that HTTP 0.9 is not widely used at all, it is not surprising 
> that
> most servers reply with some version of HTTP/1.0 or above response.
> 
> It would be useful for your server to follow the stricter definition
> here, though you do not need to generate all the right error responses.
> For 0.9 errors, it should be sufficent to just return a generic error
> page and not worry about the different cases.
> 
> However, I do believe that an 0.9 request should _not_ be answered with
> an HTTP/1.0 response with headers etc.
> 
> -Jan
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue


More information about the cs631apue mailing list