[hybi] Errors in HTTP proxy examples in Web Socket protocol, 3.1 step 3

Jeff Walden <jwalden@MIT.EDU> Sat, 30 May 2009 02:16 UTC

Return-Path: <jwalden@MIT.EDU>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8393B3A6839 for <hybi@core3.amsl.com>; Fri, 29 May 2009 19:16:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LIS5D4i4LIEp for <hybi@core3.amsl.com>; Fri, 29 May 2009 19:16:53 -0700 (PDT)
Received: from biscayne-one-station.mit.edu (BISCAYNE-ONE-STATION.MIT.EDU [18.7.7.80]) by core3.amsl.com (Postfix) with ESMTP id 40E273A67A5 for <hybi@ietf.org>; Fri, 29 May 2009 19:16:53 -0700 (PDT)
Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id n4U2IZbh022202 for <hybi@ietf.org>; Fri, 29 May 2009 22:18:35 -0400 (EDT)
Received: from find-waldo-now.local (corp-241.mountainview.mozilla.com [63.245.220.241]) (authenticated bits=0) (User authenticated as jwalden@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id n4U2IYS1021943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <hybi@ietf.org>; Fri, 29 May 2009 22:18:35 -0400 (EDT)
Message-ID: <4A20976F.30108@mit.edu>
Date: Fri, 29 May 2009 19:18:23 -0700
From: Jeff Walden <jwalden@MIT.EDU>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
MIME-Version: 1.0
To: hybi@ietf.org
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.42
Subject: [hybi] Errors in HTTP proxy examples in Web Socket protocol, 3.1 step 3
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 30 May 2009 02:16:53 -0000

The examples don't (explicitly) include the (required) port number in the authority part of the Request-Line.  Also, they're missing HTTP/1.1's (required) Host header.  They instead should be:

   CONNECT example.com:80 HTTP/1.1
   Host: example.com

and

   CONNECT example.com:80 HTTP/1.1
   Host: example.com
   Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=


Jeff