Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id TAA08761; Sat, 6 Sep 1997 19:51:08 -0700 (PDT) Received: from paris.ics.uci.edu (mmdf@paris.ics.uci.edu [128.195.1.50]) by hyperreal.org (8.8.5/8.8.5) with SMTP id TAA08754 for ; Sat, 6 Sep 1997 19:51:04 -0700 (PDT) Received: from kiwi.ics.uci.edu by paris.ics.uci.edu id aa28912; 6 Sep 97 18:45 PDT To: new-httpd@apache.org Subject: Re: function to split URL into components In-reply-to: Your message of "Fri, 05 Sep 1997 23:46:25 MDT." Date: Sat, 06 Sep 1997 18:38:43 -0700 From: "Roy T. Fielding" Message-ID: <9709061845.aa28912@paris.ics.uci.edu> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org >We need a function to split a URL into a method, host, port and path. >Agreed? I was just fixing a bug reported in mod_proxy when I got to >thinking how an ugly 30 line section should really only need to be a >couple of lines long. > >We don't have one, do we? Just to be sure I'm not missing one before I >start... We need one for mod_imap as well. You can use the regular expression in the current URL draft: http://www.ics.uci.edu/~fielding/url/ ....Roy