<div dir="ltr">To add to the confusion, different websites seem to handle this differently. When using GET / and GET /adsjasjdka (for not found) which are both valid HTTP 0.9 request..s<div><br></div><div><a href="http://www.internet.org">www.internet.org</a> - responds with HTTP/1.1 headers and everything for a HTTP/1.0 request. </div>
<div><br></div><div><a href="http://www.apache.org">www.apache.org</a> - responds ONLY with the entity body and no headers or response code. IF the file is not found, it just sends the HTML of the 404 page but no code</div>
<div><br></div><div><a href="http://www.stevens.edu">www.stevens.edu</a> - responds only with entity body per RFC for not found returns the 404 HTML but no headers/response code.</div><div><br></div><div>So what are we supposed to follow? RFC 1945 would say apache and stevens are following HTTP 0.9 while <a href="http://internet.org">internet.org</a> isn&#39;t (and others I&#39;ve tried).</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 24, 2013 at 6:06 PM, Tejas Nadkarni <span dir="ltr">&lt;<a href="mailto:tnadkarn@stevens.edu" target="_blank">tnadkarn@stevens.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Any update on this?<div><br></div><div>Should the server respond with a code or just the entity-body?</div>
<div><br></div><div>i.e. </div><div><br></div><div>GET /index.html</div><div><br></div><div>Response: &lt;contents of index.html&gt;</div>
<div><br></div><div>OR</div><div><br></div><div>Response: <span style="font-family:arial,sans-serif;font-size:13px">HTTP/1.0 200 OK</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">&lt;contents of index.html&gt;</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I believe the server responds with the server code but nothing else but want confirmation.</span></div>

</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 24, 2013 at 8:49 AM, Tejas Nadkarni <span dir="ltr">&lt;<a href="mailto:tnadkarn@stevens.edu" target="_blank">tnadkarn@stevens.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I&#39;ve been reading the RFC and I understand 0.9 are simple requests that only support GET and no content-types, etc.<div>

<br></div><div>However, how do you respond to HTTP 0.9 requests?</div><div><br></div>
<div>i.e. GET /index.html is a HTTP 0.9 request</div><div><br></div><div>From the RFC it seems you don&#39;t respond with headers but just the response code line and that&#39;s it. If the file exists you send the file, if not just the response code. Whereas with HTTP/1.0 you send the additional headers.</div>


<div><br></div><div>is this right?</div><div><br></div><div>i.e. for HTTP 0.9</div><div><br></div><div>Client: GET /index.html</div><div><br></div><div>Server: HTTP/1.0 200 OK<br></div><div>&lt;file contents&gt;</div><div>


<br></div><div>----</div><div><br></div><div>Client: GET /index.html</div><div><br></div><div>Server: HTTP/1.0 404 Not Found</div><div><br></div><div>Or do we still send other things like Date/Server name/etc. back?</div>


<div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>