<?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);
 Fri, 05 Apr 2002 14:35:59 -0500 (EST)
Return-Path: &lt;jgoerzen@complete.org&gt;
Delivered-To: gopher@complete.org
Received: from christoph.complete.org (unknown [168.215.193.254])
	by pi.glockenspiel.complete.org (Postfix) with ESMTP id DED423B80B
	for &lt;gopher@complete.org&gt;; Fri,  5 Apr 2002 14:35:58 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
	by christoph.complete.org (Postfix) with ESMTP id 15E465A411
	for &lt;gopher@complete.org&gt;; Fri,  5 Apr 2002 14:36:00 -0500 (EST)
Date: Fri, 5 Apr 2002 14:36:00 -0500
Subject: [gopher] Re: Pygopherd nearing gopherd replacement
Content-type: text/plain; charset=US-ASCII
Mime-Version: 1.0 (Apple Message framework v481)
From: John Goerzen &lt;jgoerzen@complete.org&gt;
To: gopher@complete.org
Content-Transfer-Encoding: 8bit
In-Reply-To:
 &lt;20020405185838.LCJZ19941.tomts19-srv.bellnexxia.net@[209.226.175.18]&gt;
Message-Id: &lt;5BF242A8-48CC-11D6-857D-0003930BF072@complete.org&gt;
X-Mailer: Apple Mail (2.481)
X-archive-position: 567
X-ecartis-version: Ecartis v1.0.0
Sender: gopher-bounce@complete.org
Errors-to: gopher-bounce@complete.org
X-original-sender: jgoerzen@complete.org
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></p>
<p>On Friday, April 5, 2002, at 01:58  PM, Ralph Furmaniak wrote:
</p>
<p>&gt; The executable already knows what it will return, and the person making
&gt; the menu knows what it will return.  Suppose you have script &#x27;foo&#x27; that
&gt; reads an archive and displays a menu.  You also have a script &#x27;bar&#x27;
&gt; which just serves files from the archive.  Suppose the server does not
&gt; receive the character.  If it just prints the results, then gopher+ and
&gt; http browsers cannot access foo.  If it automaticlly formats it, bar
&gt; will look strange or be corrupted.
</p>
<p>Are you saying that the Gopher server process would post-process the
output from foo and re-render it in some fashion?
</p>
<p>If so, then yes, you would have to know this information. However, I
would suggest placing it at the *end* of the selector rather than at the
start.  Makes things cleaner IMHO.
</p>
<p>I am not currently envisioning scripts returning anything that is
post-processed by the gopher server.  I figure, right now, that is not
the job of a gopher server.  HTTP clients using pygopherd running these
scripts will be SOL, but all gopher browsers will be fine.  HURG would
be good for this situation.  (Note: I reserve the right to change my
mind :-)
</p>
<p>As long as the server does not need to post-process the data, there is
no need for the server to know the type of data (this is specified in
the menu and so the client knows.)  Perhaps this is why we have been
miscommunicating all the time -- you assumed the server would
post-process and I assumed it would not?
</p>
<p>&gt; You could of course have the script examine the gophermap,link,cap
&gt; files to determine the type, but this makes things more complicated
&gt; especially if &#x27;foo&#x27; and &#x27;bar&#x27; are one and the same script.  It is
&gt; especially more complicated if the original menu was itself a script.
</p>
<p>Yes, that&#x27;s ugly.
</p>
<p>&gt; This is not a problem in umn gopherd, since it automatically assumes
&gt; that executables are text/plain.
</p>
<p>You can still make them return menus if you like, just set Type=1.
</p>
<p>-- John
</p>
<p></p>
</card>
</wml>
