From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:40; helo=resqmta-ch2-08v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:40]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 2002F77893 for ; Fri, 9 Feb 2018 12:09:47 -0800 (PST) Received: from resomta-ch2-11v.sys.comcast.net ([69.252.207.107]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id kEyVenKZxvd8rkF05edupp; Fri, 09 Feb 2018 20:10:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1518207025; bh=TVkrbKefQIBp824cslthhHiPFtfNnPV8hcI0Ora7cU0=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=O8cjltKN/5EUN1OAtYcCNMy3ssbyi80h/tZmP4KXImUvFOIKqXWAeX/f8op3HZ76N vaVsTJdUm8p3D/cQPYuYA/G5EJD9LS7rRyrtZM6+yQBSAW8dA43irlhGVNlBbLWvSk 2TcW9SV7ufLmgbdIN71Qza4aNFrj8MeABvM6rRwkNHeXpi5t3vuBwZ2z5o54x5U4Yd HmYjAgDyURrwp7BNhP+oqLmJR0vFIeUEKIM9c0JAD1wYlZtVISPFHndHMcb7V69jbS ipypcXlTHN1dDDyqdGz7faInE2keQFHH9jOSxZe4TW7zRk7mJLiP6JXadsN5kWRJ05 IpmxB4IvSk0Bg== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-11v.sys.comcast.net with SMTP id kF04ePoN4EcHBkF04eulTr; Fri, 09 Feb 2018 20:10:25 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: <20180126180106.t5yhqm3c7pjpjqvm@toaster> <20180209184423.573helf36oouqoxa@toaster> User-Agent: edbrowse/3.7.1 Date: Fri, 09 Feb 2018 15:10:24 -0500 Message-ID: <20180109151024.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfMVFh0cAt5ENhxJRAkwvwUehteO3wqt33DdkroG0qOU66c08xjeaumXzFN544P/alym9qrgUnIZV7vRveV1qe1xrujp3kk+UKMs1iEdrBVEKNJldY/n7 NsycER6+NyW0uvZOhKqF2DzyConbH0fVe7r5CshX2Ld61wlKZDB7dywH Subject: [Edbrowse-dev] protocol handlers and outputting to buffer X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.25 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 20:09:48 -0000 curl has gopher support. Tell edbrowse to use curl to download anything gopher, just as it downloads http or https. Look at http.c line 937, perhaps we can just add gopher to the disjunction. Perhaps headers will come across, like http headers, with content type, and of course the file could have suffixes. I'd play around with it but don't have a gopher server with various files to test. Unless there is a public one. Just change that one line and run with db4 and see what kind of headers come across. Karl Dahlke