<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
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 &lt;gopher@complete.org&gt;; 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: &lt;74066d3d0706300914r23d7b82btce0c08d0dc905a67@mail.gmail.com&gt;
Date: Sat, 30 Jun 2007 11:14:19 -0500
From: &quot;Jonathan Rascher&quot; &lt;jrascher@gmail.com&gt;
To: gopher@complete.org
Subject: [gopher] Re: Bucktooth questions
In-Reply-To: &lt;20070630134836.GB6348@pongonova.net&gt;
MIME-Version: 1.0
Content-type: text/plain; charset=WINDOWS-1252
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
References: &lt;20070630062739.GB5388@pongonova.net&gt;
	 &lt;200706301409.l5UE9ZBY015354@floodgap.com&gt;
	 &lt;20070630134836.GB6348@pongonova.net&gt;
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: &lt;mailto:ecartis@complete.org?Subject=help&gt;
List-unsubscribe: &lt;mailto:gopher-request@complete.org?Subject=unsubscribe&gt;
List-software: Ecartis version 1.0.0
List-Id: Gopher &lt;gopher.complete.org&gt;
X-List-ID: Gopher &lt;gopher.complete.org&gt;
List-subscribe: &lt;mailto:gopher-request@complete.org?Subject=subscribe&gt;
List-owner: &lt;mailto:jgoerzen@complete.org&gt;
List-post: &lt;mailto:gopher@complete.org&gt;
List-archive: &lt;http://www.complete.org/mailinglists/archives/&gt;
X-list: gopher
</p>
<p>On 6/30/07, brian@pongonova.net &lt;brian@pongonova.net&gt; wrote:
&gt; While we&#x27;re on the topic:  Does anyone know of a html-&gt;gopher
&gt; converter?  Something that basically converts HTML tags that can be
&gt; converted to RFC 1436-compliant syntax (i.e., prepending the correct
&gt; itemtype for links, files, images, etc.), and strips out the rest.
</p>
<p>I recently set up a Gopher server of my own, and this is one of the
things I&#x27;ve thought of adding to it. A WWW proxy for Gopher seems to
have been discussed as far back as GopherCon &#x27;92
&lt;http://iubio.bio.indiana.edu/soft/util/gopher/gophercon1.txt&gt;, but I
don&#x27;t think anyone&#x27;s ever implemented it.
</p>
<p>That said, it shouldn&#x27;t be too hard to pull off. First, snag a copy of
Lynx &lt;http://lynx.isc.org/&gt; if you don&#x27;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.
</p>
<p>Here&#x27;s a couple examples of Lynx&#x27;s dump mode:
</p>
<p>$ lynx -dump -width=3D67 http://example.net/
</p>
<p>   You have reached this web page by typing &quot;example.com&quot;,
   &quot;example.net&quot;, or &quot;example.org&quot; into your web browser.
</p>
<p>   These domain names are reserved for use in documentation
   and are not available for registration. See [1]RFC 2606,
   Section 3.
</p>
<p>References
</p>
<p>   1. http://www.rfc-editor.org/rfc/rfc2606.txt
</p>
<p>$ 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
</p>
<p>Hope this helps,
Jonathan
--=20
&quot;Do not meddle in the affairs of dragons, for you are crunchy and
taste good with ketchup.&quot; =97 Unknown
</p>
<p></p>
</card>
</wml>
