From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:400c:c0c::229; helo=mail-wr0-x229.google.com; envelope-from=arthompson1990@gmail.com; receiver= Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com [IPv6:2a00:1450:400c:c0c::229]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 3612B77A9A for ; Sun, 11 Feb 2018 08:41:10 -0800 (PST) Received: by mail-wr0-x229.google.com with SMTP id b52so12858001wrd.10 for ; Sun, 11 Feb 2018 08:41:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yiy9ObQJlVDitORUCu8aFql7ddSiFxEcI9IjLNKOYxk=; b=e/RLkZVQOSNQXpysnbbiQAxPt3EpKRVcJ6cMylJZvTeuXTBiEa2OySyMYn0ycfgAfH HcjmT119kF3vtoVK8UqS6Xw7nUGX/dK2ZnoapX+GpkLpf8VTw+CC69AyUKkiY4g9rBbc R5waNVftmM6lPLxyTWD2KyObBWtH05VNRHe4CM4WLHtBm98jAPrQMkMczRN/yu/6QQXV llYIJVbztZ5SQkVEPGBFq5EOrAqAUt3Y6Z3w/qS5iBlqtN3/btx3E1pXUqXxZhpqJSbZ ++6sV1s2YJrn3vGSFK17ifmpDvoSw9sT2FxW0WZVTUGi5Qe+3VUiDzYFS7rU3nnTPE8q Jl2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yiy9ObQJlVDitORUCu8aFql7ddSiFxEcI9IjLNKOYxk=; b=gMbRbztDu+FqLpYsEfx/S4Xq1V96k3+r/HDYN7UzcKxo6+1vEKxo1rY6xHqsvihIs0 9a7fqK0HfQ3WuBp0cD/UMXMCj21PzTg6mT16MutXqAtVwrK2Pb39J1gOpWgRgxghi5Qj GZx8mqd3R+aPC7biclXQE8ncvT9/ptdR3aVpatYdy6CAU27lzLuCuPKYXiZxOXCqZLag ULnCRsEJBEPuMuyI3C2rwc6D/9GeCpNiiN2f/+DJDm2cRo1mM8oz27DdwRfqoz0e5NkC RP7QJ8a4ct6FutYVqLnu6IUP2KJkRcohY18lJLDwG3fT6/uF9xDAqnSKTUrV23359gT1 tkfA== X-Gm-Message-State: APf1xPCo6SbcKTiiVxyBHH+rs19iH5fc7BSdBLkjRbuSMISn5tEAADeS O5VnUI8zn1NKFtM9FrzQzms= X-Google-Smtp-Source: AH8x225sApOaaYH5sFapiKcyqTl1Axacb8otThckAuwf725IXMElztRdC/cMlTO2pmBAWLbIJxcJDw== X-Received: by 10.223.179.67 with SMTP id k3mr5260446wrd.189.1518367310703; Sun, 11 Feb 2018 08:41:50 -0800 (PST) Received: from toaster (a.5.9.3.b.f.e.f.f.f.4.4.2.d.a.2.2.4.0.9.2.4.1.1.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1142:9042:2ad2:44ff:fefb:395a]) by smtp.gmail.com with ESMTPSA id o25sm7447321wro.55.2018.02.11.08.41.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Feb 2018 08:41:49 -0800 (PST) Date: Sun, 11 Feb 2018 16:41:42 +0000 From: Adam Thompson To: Karl Dahlke Cc: Edbrowse-dev@lists.the-brannons.com Message-ID: <20180211164142.x5wa46v7wuzz7dmp@toaster> References: <20180126180106.t5yhqm3c7pjpjqvm@toaster> <20180209184423.573helf36oouqoxa@toaster> <20180109151024.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180109151024.eklhad@comcast.net> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [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: Sun, 11 Feb 2018 16:41:10 -0000 On Fri, Feb 09, 2018 at 03:10:24PM -0500, Karl Dahlke wrote: > 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. Yeah I know, I was contemplating patching the support directly into edbrowse but wasn't sure which would be easier plus it'd be good if plugins could more closely integrate with the rest of edbrowse in any case. On the subject of gopher specifically it has no headers, the content type is done in the selector. It also has a menu which needs to be parsed (basically a list of selectors and text). Quite simple but would need the rendering code to be aware of it somehow. I'm not sure if I could do something like the ftp code? Anyway, sdf.org (and sdf-eu.org) run a gopher server, and there're a bunch more (including a project gutenberg one but I'm not sure how standard that one is). Cheers, Adam.