Ticket #631 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

Support HTTP/1.0 requests

Reported by: gsnedders Owned by:
Priority: minor Milestone: 0.6
Component: -none- Version: SVN
Keywords: Cc:

Description

HTTP/1.0 has no Host header, which we currently rely upon.

$ telnet gsnedders.com 80
Trying 64.13.239.21...
Connected to gsnedders.com.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 04 Sep 2008 20:14:55 GMT
Server: Apache/2.0.54
X-Powered-By: PHP/5.2.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-action: display_home
Set-Cookie: PHPSESSID=68de670fd0d544f09c016f3ca2d29523; path=/
Vary: Accept-Encoding
Connection: close
Content-Type: text/html;charset=utf-8

<!DOCTYPE html>
<html lang="en-gb-x-sneddy">
	<title>gsnedders</title>
	<link rel="stylesheet" type="text/css" href="<pre class="error">
<b>Notice:</b> Undefined index:  HTTP_HOST in system/classes/site.php line 137
</pre>Connection closed by foreign host.

This has been causing a whole manner of such errors for various people for a while.

Change History

Changed 2 months ago by michaeltwofish

  • priority changed from major to minor

See http://groups.google.com/group/habari-dev/browse_thread/thread/64bfff4ace14651d

While the issue should be addressed, I don't think this is really a major issue. I can't find any data on lack of support for HTTP 1.1 among UAs, which suggests to me that support is almost universal.

If we decide to not support HTTP 1.0, would it be appropriate to return a 505 HTTP Version Not Supported ?

If we decide to support HTTP 1.0 ... I have no idea how to deal with it at this stage. There are obvious differences in what we'll have to do for single and multi site installs.

Changed 2 months ago by sean

  • status changed from new to closed
  • resolution set to fixed

fixed in [2496]

Changed 2 months ago by moeffju

Fixed in [2547].

Note: See TracTickets for help on using tickets.