Received: by taz.hyperreal.com (8.6.12/8.6.5) id TAA28688; Tue, 23 Apr 1996 19:29:59 -0700 Received: from mail.barrnet.net by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id TAA28679; Tue, 23 Apr 1996 19:29:53 -0700 Received: from ace.nueva.pvt.k12.ca.us (ace.nueva.pvt.k12.ca.us [198.31.42.1]) by mail.barrnet.net (8.7.5/MAIL-RELAY-LEN) with ESMTP id TAA17724 for ; Tue, 23 Apr 1996 19:26:35 -0700 (PDT) Received: from localhost by ace.nueva.pvt.k12.ca.us with SMTP (1.37.109.16/15.5+ECS 3.3+HPL1.1) id AA059402793; Tue, 23 Apr 1996 19:26:33 -0700 Date: Tue, 23 Apr 1996 19:26:33 -0700 (PDT) From: Alexei Kosut To: new-httpd@hyperreal.com Subject: Re: implementing CONNECT In-Reply-To: <199604231607.JAA23390@atropos.c2.org> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com On Tue, 23 Apr 1996 sameer@c2.org wrote: > This is what I'm considering doing, let me know if it seems > like the right way of doing it: > > Modify Alexei's "Script PUT" stuff to include "CONNECT" > > Write a handler which does CONNECT (just a select() bit proxy) > > Create "Handler PUT/POST/GET/CONNECT" > which is just like Script PUT/POST/GET except it points to a > specific handler (Using Alexei's new way of pointing at handlers) > rather than a script... This seems rather a roundaout way of doing it. Simply adding CONNECT to the list of methods (located in httpd.h) and then adding a handler for */*, that looks something like this: int connect_handler (request_rec *r) { if (r->method_number != M_CONNECT) return DECLINED; /* Do connect stuff */ return OK; } This should work fine. A request URI of "hostname:port" and a method of CONNECT will be ignored by everything else, so it should arrive at this handler without anything touching it. -- ________________________________________________________________________ Alexei Kosut URL: http://www.nueva.pvt.k12.ca.us/~akosut/ Lefler on IRC, DALnet