Received: with ECARTIS (v1.0.0; list gopher); Sat, 30 Jun 2007 11:14:24 -0500 (CDT) Received: from an-out-0708.google.com ([209.85.132.250]) by glockenspiel.complete.org with esmtp (Exim 4.63) id 1I4faY-0001ff-0n for gopher@complete.org; Sat, 30 Jun 2007 11:14:23 -0500 Received: by an-out-0708.google.com with SMTP id b33so263117ana for ; Sat, 30 Jun 2007 09:14:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s3KyPCRQluPQlPc6IDSYGl1wqofBYXDV3jIdGN1iNBee0hK6WYR/PaW2ad86nFsZQKbZREMtrkRtD2Itjb4KSg1c2O/QojXqYwhA9RX2/oOTaujb8KiIlEhCvOjQTZvBJwp/5anCDnh+g2BA3VAl47A6WNhTHmVhPgs6L2xe8AQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YK20TmEQCklt7aBVTtwgkPCm+fVT8YkAU/HA941hRfT3XP6GT+l81zQOTlj+9Pq/eRCmkPFyiLlTXc3Mn4keAeQc8CL5OzccFanB/rOx0NvMfqe6OryKYP+oa8N2nLX4t+Iam50vydarYw0mAR3TeEAEyt8u1BmukmPehUNrqN8= Received: by 10.100.47.9 with SMTP id u9mr2781175anu.1183220059356; Sat, 30 Jun 2007 09:14:19 -0700 (PDT) Received: by 10.100.197.11 with HTTP; Sat, 30 Jun 2007 09:14:19 -0700 (PDT) Message-ID: <74066d3d0706300914r23d7b82btce0c08d0dc905a67@mail.gmail.com> Date: Sat, 30 Jun 2007 11:14:19 -0500 From: "Jonathan Rascher" To: gopher@complete.org Subject: [gopher] Re: Bucktooth questions In-Reply-To: <20070630134836.GB6348@pongonova.net> MIME-Version: 1.0 Content-type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8bit Content-Disposition: inline References: <20070630062739.GB5388@pongonova.net> <200706301409.l5UE9ZBY015354@floodgap.com> <20070630134836.GB6348@pongonova.net> X-Spam-Status: No (score 0.0): none X-Virus-Scanned: by Exiscan on glockenspiel.complete.org at Sat, 30 Jun 2007 11:14:23 -0500 X-archive-position: 1638 X-ecartis-version: Ecartis v1.0.0 Sender: gopher-bounce@complete.org Errors-to: gopher-bounce@complete.org X-original-sender: jrascher@gmail.com Precedence: bulk Reply-to: gopher@complete.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: Gopher X-List-ID: Gopher List-subscribe: List-owner: List-post: List-archive: X-list: gopher On 6/30/07, brian@pongonova.net wrote: > While we're on the topic: Does anyone know of a html->gopher > converter? Something that basically converts HTML tags that can be > converted to RFC 1436-compliant syntax (i.e., prepending the correct > itemtype for links, files, images, etc.), and strips out the rest. I recently set up a Gopher server of my own, and this is one of the things I've thought of adding to it. A WWW proxy for Gopher seems to have been discussed as far back as GopherCon '92 , but I don't think anyone's ever implemented it. That said, it shouldn't be too hard to pull off. First, snag a copy of Lynx if you don't already have it. Now you can use Lynx with the -dump flag to give you a plain text rendering of a page, plus a list of hyperlinks. Also, you can get the MIME type of a resource by using -head along with -dump. From here, you can deduce the proper item type for a link. Here's a couple examples of Lynx's dump mode: $ lynx -dump -width=3D67 http://example.net/ You have reached this web page by typing "example.com", "example.net", or "example.org" into your web browser. These domain names are reserved for use in documentation and are not available for registration. See [1]RFC 2606, Section 3. References 1. http://www.rfc-editor.org/rfc/rfc2606.txt $ lynx -dump -head http://www.rfc-editor.org/rfc/rfc2606.txt HTTP/1.1 200 OK Server: Netscape-Enterprise/3.6 SP3 Date: Sat, 30 Jun 2007 16:11:32 GMT Content-type: text/plain Last-modified: Mon, 07 Jun 1999 22:24:19 GMT Content-length: 8008 Accept-ranges: bytes Connection: close Hope this helps, Jonathan --=20 "Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup." =97 Unknown